Below the Radar
Below the Radar

Reputation: 7635

run nodejs script using the atom nodejs installation

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

Answers (1)

TGrif
TGrif

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

Related Questions