node.jsnpmbinaries

How to compile NPM modules to binaries for all platforms


how to convert NODE MODULES into binaries to support all platform.

and load those binaries in Node application instead of npm modules. ?


Solution

  • A good starting point might be to take a look at http://cylonjs.com/blog/2014/11/19/creating-multiplatform-precompiled-binaries-for-node-modules/

    It would help if you could clarify your question, since I'm not sure exactly what you are trying to achieve. I answered on the assumption that you have binaries you want to include for node modules on multiple platforms (see link above). Otherwise, just having node modules installed as part of an application should be the same as adding them as a dependency in the package.json.