Sitemap

Speed up your npm init

Speed up your npm init process by setting defaults

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.

Press enter or click to view image in full size

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

Press enter or click to view image in full size

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

--

--