run package.json script from js code example Example: run the scripts in package json npm run <script-name>