One of the strengths of Node.js is surely the availability of tens of thousands of modules that are freely downloadable with npm. As you probably know already, Node.js supports three kinds of modules:
You can use all of them in NW.js with some precautions.
Internal modules such as fs, path, or http are available out of the box and you can call them very easily with the following code:
var fs = require('fs');
Third-party JavaScript modules can be installed with npm and will be downloaded with all their dependencies inside the node_modules
folder of the application's root folder in order to be shipped with the application. You can require them very easily using the following code:
var modulename = require('modulename');