custom npm scripts code example
Example 1: npm run custom script
# In your package.json you defined a custom script "custom"
# You can run it using
npm run custom
Example 2: custom scripts in package.json
"scripts": {
"homedata": "node export.js homedata",
},
//In the terminal type
npm run homedata