Reputation: 86
Is it possible to automaticly run a command: npm something.js when I save the something.js file? Thanks.
npm something.js
something.js
Upvotes: 2
Views: 3226
Reputation: 996
You could also checkout onchange:
npm install -g onchange
You can use it to trigger something upon saving a file:
onchange app.js -- node app.js
I use it to autoexecute files that I'm working on, for example.
Upvotes: 9