May 2018
Intermediate to advanced
492 pages
12h 3m
English
If you want to create a new package, you can create the package.json file by hand or you can get npm's help. The npm init command leads you through a little dialog to get starting values for the package.json file.
Once you get through the questions, the package.json file is written to disk.
Expect to have to edit that file considerably before publishing to the npm repository. A few fields help give a good impression to folks looking at the package listing on npmjs.com:
Read now
Unlock full access