concept module in category sails

appears as: modules, module, module, modules
Sails.js in Action

This is an excerpt from Manning's book Sails.js in Action.

A Node module aggregates related JavaScript code into a single unit. Technically, a module is just a file that exports something. A Node.js file that doesn’t export anything is usually called a script. An npm package is a directory of files that you install from npm. But because npm installs packages into a folder named node_modules/, many Node.js developers (including Isaac Schlueter, the creator of npm, and us) have become accustomed to using the terms npm package, npm module, package, and module interchangeably.

You can see the module as a dependency by reopening the firstApp/package.json file in Sublime, similar to the following listing.