add scripts in package.json code example
Example 1: run the scripts in package json
npm run <script-name>
Example 2: custom scripts in package.json
"scripts": {
"homedata": "node export.js homedata",
},
//In the terminal type
npm run homedata