Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 659
Below the Radar Avatar asked Mar 25 '26 13:03

Below the Radar


1 Answers

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
like image 60
TGrif Avatar answered Mar 27 '26 05:03

TGrif



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!