Customize npm init default values
Customize Global npm init default values for next project

Search for a command to run...
Customize Global npm init default values for next project

Nice Vimal kumar
I knew it could be customized but never cared to do so. Thanks for writing.
Thanks
As a developer portfolio is best place to Showcase skill, work and Achievements and It's is really valuble for your career. So we need to keep Portfolio updated and Updating portfolio is frustrating, right? So, we've got you covered We are happy to a...

Hello 👋 I am happy to announce my latest project Vdev (A portfolio and resume generator) vdev.in Vdev generate Your portfolio based on info you filled in form and Show your info in a nice-way Here is demo of generated Portfolio Here is demo of resu...

Git Commands A list of Git commands feel free to star this Tell Git who you are DescriptionCommand Configure the author name.git config --global user.name "<username>" Configure the author email address.git config --global user.email <email...

Github cli commands A list of Github cli commands feel free to star this Repository DescriptionCommand Initialize a Github repository [default private]gh repo create <name> Initialize a Github public repositorygh repo create <name> --public...

npm init is a first process of any new node project and we all have to setup author, version and license manually, This tutorial help you to config those things globally .
This is default npm init -y result value

for chang default value of npm init command you need to follow this Synopsis
npm config set <key>=<value>
Change global author name by
npm config set init-author-name "vimal kumar"
Change global author email by
npm config set init-author-email "vimal@letskhabar.com"
Change global author web url by
npm config set init-author-url "https://vimal.letskhabar.com/"
Change global default license
npm config set init-license "MIT"
Change global default version
npm config set init-version "0.0.1"
For more check this npm documentation
All the change has been saved in your ~/.npmrc directory as shown in image below

Now when you create new project with npm init -y you can see your default value has been changed according to your setup.

You can find all list of config defaults value by npm config list -l
and follow npm config set <key>=<value> this Synopsis to Customize your value
Enjoy, Thanks for reading.