You can define your own scripts in package.json, like: "scripts": { "fix-tags": "node app.js tags/index.html" } and you can run them like this: npm run-script fix-tags