npm set init-author-name 'Barry'

Category: Node.js & npm/yarn

npm set init-author-name 'Barry'

Set a default author name used in every new npm init

Saves your name in npm's global config so every future 'npm init' pre-fills the author field — a one-time convenience setup.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.