You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be nice if npm init would fetch for the author the information from the git config if it's provided. I could see two potential orders of preference here:
Option 1:
local .git/config > npm config > global git config > empty string
Option 2:
npm config > git config > empty string
There would be also the option to actually execute the respective git config --get user.name etc. commands which would respect both local and global config.
Let me know what you think. Happy to work on the PR for this.
The text was updated successfully, but these errors were encountered:
Hi everyone,
I think it would be nice if
npm init
would fetch for the author the information from the git config if it's provided. I could see two potential orders of preference here:Option 1:
local
.git/config
> npm config > global git config > empty stringOption 2:
npm config > git config > empty string
There would be also the option to actually execute the respective
git config --get user.name
etc. commands which would respect both local and global config.Let me know what you think. Happy to work on the PR for this.
The text was updated successfully, but these errors were encountered: