Speed up your npm init

Speed up your npm init process by setting defaults

omrilotan
Aug 25, 2021

npm uses init-package-json package under the hood. A quick view can tell us we can set up some defaults to be picked up by it.

You can add some default configuration details for npm init in your ~/.npmrc file.

Add your personal details:

init-author-name=<FULL_NAME>
init-author-email=<EMAIL>
init-author-url=<WEBSITE>

Add your preferable license and initial version:

init-version=0.1.0
init-license=Unlicense

--

--