Get/Set your npm author name from npmrc or gitconfig files
npm i npm-author-name
import { setAuthorName, getAuthorName } from 'npm-author-name';
if(!getAuthorName()) {
setAuthorName("Some Name");
}
console.log("author name", getAuthorName())
Gets the npm author name from npmrc file, or fallback to git config file
TypeScriptMIT