Results: 44
get --save flag default value
Shows
--save
flag default value
npm config get save  /  npm get save
set
--save
default as
false
npm config set save=false  /  npm set save=false
Installs package with
--save
flag as default (from npm version 5.*
--save
is default)
npm install moment
After installing the package, the following will be added to
pckage.json
file
"dependencies": {
    "moment": "^2.27.0"
  }
Deletes manually set default license (default license will become
ISC
)
npm config delete init-license
Deletes manually set default author name (default author will become empty string)
npm config delete init-author-name
get default license
Shows default value for license property
npm config get init-license  /  npm get init-license
Shows the default value for author
npm config get init-author-name
We can omit
config
keyword
npm get init-author-name
Sets default value for license property
npm config set init-license "MIT"  /  npm set init-license "MIT"
Sets default value for author property of
package.json
file
npm config set init-author-name "Va. Tand."
We can omit
config
keyword
npm set init-author-name "Va. Tand."
Creates
package.json
file that contains all of the settings and essential information for the application Creates the file with the default values
npm init -y  /  npm init --yes
Results: 44