1 | The only thing an npm package requires is the {bold}package.json{/bold} file.
|
2 |
|
3 | This 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 |
|
7 | Answer these questions and your {bold}package.json{/bold} will be generated in the current directory.
|
8 |
|
9 | This 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}
|