Reputation: 7635
Is it possible to run a nodejs script using the atom nodejs installation?
For instance I run a script using a command line such:
node r.js -o build.js
I would like to know if there is a way to do the same without having a separate nodejs installation.
Upvotes: 3
Views: 309
Reputation: 5941
Atom is based on Electron which integrates it's own Node.js application. You can launch your script with the Node.js engine built into Atom by pointing directly at it.
For exemple on Linux, you can do:
$ /usr/share/atom/resources/app/apm/bin/node r.js -o build.js
Upvotes: 1