UNPKG

479 BPlain TextView Raw
1The only thing an npm package requires is the {bold}package.json{/bold} file.
2
3This file can be generated with the {bold}`npm init`{/bold} command.
4
5{bold}`npm init`{/bold} will prompt you for information about your package.
6
7Answer these questions and your {bold}package.json{/bold} will be generated in the current directory.
8
9This command will also pick up any modules in the {bold}node_modules/{/bold} directory and add them as dependencies in your {bold}package.json{/bold}