name
- name of the app (default is the name of the current folder)
version
- version of the app (default is 1.0.0 - major.manor.patch)
description
- short description for the project
main
- entry point - main JS file
keywords
- keywords that the app is related to
author
- project author
license
- default is ISC (Internet Systems Consortium)package.json
filenpm config set init-author-name "Va. Tand."
We can omit config
keywordnpm set init-author-name "Va. Tand."
npm config set init-license "MIT" / npm set init-license "MIT"
npm config get init-author-name
We can omit config
keywordnpm get init-author-name
npm config delete init-author-name
ISC
)npm config delete init-license
--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"
}
--save
default as false
npm config set save=false / npm set save=false