Next: Webpack, Previous: Node Packages, Up: React Development Tools [Index]
package.json
file.
package.json
file.
git
url that, when cloned, results in (1).
Git
URLs used for npm
packages can be formatted in the following ways:
git://github.com/user/project.git#commit-ish
git+ssh://user@hostname:project.git#commit-ish
git+http://user@hostname/project/blah.git#commit-ish
git+https://user@hostname/project/blah.git#commit-ish
node_modules
directory that can
be loaded by the Node.js
require()
function.
Since modules are not required to have a package.json
file, not all modules
are packages. Only modules that have a package.json
file are also packages.
In the context of a Node program, the module is also the thing that was loaded from a file. in the following program:
var req = require('request')
we might say that "The variable req refers to the request module".
• Creating a package.json File | ||
• Creating a Node.js Module | ||
• Specifying Dependencies and DevDependencies | ||
• npm CLI |