Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetching author information from git config #73

Open
dkundel opened this issue Oct 9, 2017 · 1 comment
Open

Fetching author information from git config #73

dkundel opened this issue Oct 9, 2017 · 1 comment

Comments

@dkundel
Copy link

dkundel commented Oct 9, 2017

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 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.

@frank-dspeed
Copy link

can be closed:
Feature added

Solution

Feature added read about npm init on https://npmjs.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@dkundel @frank-dspeed and others