Ced
Ced

Reputation: 1301

Using node.js modules with atom-shell

I started to have a look at the atom-shell and as documented there is a possibility to access native node modules: https://github.com/atom/electron/blob/master/docs/tutorial/using-native-node-modules.md

So is there any possibility to use those node modules from the javascript code which is executed inside the atom shell, for example to execute sql statements.

Upvotes: 2

Views: 815

Answers (2)

Ced
Ced

Reputation: 1301

For anyone having the same question, the remote-object can handle this:

https://github.com/atom/electron/blob/master/docs/api/remote.md

Upvotes: 1

Ana Betts
Ana Betts

Reputation: 74654

Yes, of course, that's the point :) Once built correctly, you require native node.js modules just like you require JavaScript-based ones.

Upvotes: 5

Related Questions