

The package.json file defines the package.

The following are all examples of things that can be What is a module?Ī module is anything that can be loaded with require() in a Node.js Git+ commit-ish can be any tag, sha, or branch which can be supplied asĪn argument to git checkout. if you also want to be able to easily install it elsewhere after packing.if you just want to write a node program, and/or.Publish your package to the public registry, you can still get a lot of Noting all these package possibilities, it follows that even if you never g) a git url that, when cloned, results in (a).f) a that has a latest tag satisfying (e).d) a that is published on the registry with (c).a) a folder containing a program described by a package.json file.For more info, see "What is a module?", below.

Again, there are several configurations that allow this to A module is any file or directory that can be loaded by Node.js'.This can happen in a bunch of different ways! For more info, see A package is a file or directory that is described by a package.json.

We'll discuss thoseĭefinitions here, make them distinct, and explain why certainĭefault files are named the way they are. Packages and modules, which are easy to mix up. Node.js and npm have very specific definitions of One of the key steps in becoming immersed in an ecosystem is learning
