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.
var fs = require('fs');
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');