Are
npm config set <key> <value>
and
npm set <key> <value>
synonymous?
Configuration of npm init with both of this commands, add init configuration to /home/.npmrc
npm config set init.author.name 'Some One'
npm set init.author.email '[email protected]
They are synonymous.
Check NPM's source code on GitHub: The code of the
set
command is short and callsconfig
'sset
.https://github.com/npm/npm/blob/master/lib/set.js
config
command: https://github.com/npm/npm/blob/master/lib/config.js