tjanczuk / edge

Run .NET and Node.js code in-process on Windows, MacOS, and Linux
http://tjanczuk.github.io/edge
Other
5.41k stars 639 forks source link

How to use local module in javascript sent to Edge #266

Closed estelleLeBouler closed 2 weeks ago

estelleLeBouler commented 9 years ago

I download local module in a directory that i want to use in the javascript with require('aModule') How to precise the directory when i launch Edge with : Edge.Func(javscript);

tjanczuk commented 9 years ago

See https://github.com/tjanczuk/edge#how-to-use-external-nodejs-modules

glennblock commented 9 years ago

You can also use the npm module to install modules programatically. As long as the npm node module is in the require path you can use it to do installation programatically.

On Mon, Apr 20, 2015 at 10:40 AM Tomasz Janczuk notifications@github.com wrote:

See https://github.com/tjanczuk/edge#how-to-use-external-nodejs-modules

— Reply to this email directly or view it on GitHub https://github.com/tjanczuk/edge/issues/266#issuecomment-94519526.