- these are the docs you're looking for

added by JavaScript Kicks
10/9/2014 9:36:33 PM


Most npm packages are modules, because they are libraries that you load with require. However, there's no requirement that an npm package be a module! Some only contain an executable command-line interface, and don't provide a main field for use in Node programs. Almost all npm packages (at least, those that are Node programs) contain many modules within them (because every file they load with require() is a module).