Results: 1580
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
Main properties / parameters that the file includes:
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)
by Valeri Tandilashvili
4 years ago
0
NPM
NPM Crash Course
0
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."
by Valeri Tandilashvili
4 years ago
0
NPM
NPM Crash Course
0
Sets default value for license property
npm config set init-license "MIT"  /  npm set init-license "MIT"
by Valeri Tandilashvili
4 years ago
0
NPM
NPM Crash Course
0
Shows the default value for author
npm config get init-author-name
We can omit
config
keyword
npm get init-author-name
by Valeri Tandilashvili
4 years ago
0
NPM
NPM Crash Course
0
get default license
Shows default value for license property
npm config get init-license  /  npm get init-license
by Valeri Tandilashvili
4 years ago
0
NPM
NPM Crash Course
0
Deletes manually set default author name (default author will become empty string)
npm config delete init-author-name
by Valeri Tandilashvili
4 years ago
0
NPM
NPM Crash Course
0
Deletes manually set default license (default license will become
ISC
)
npm config delete init-license
by Valeri Tandilashvili
4 years ago
0
NPM
NPM Crash Course
0
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"
  }
by Valeri Tandilashvili
4 years ago
0
NPM
NPM Crash Course
0
set
--save
default as
false
npm config set save=false  /  npm set save=false
by Valeri Tandilashvili
4 years ago
0
NPM
0
get --save flag default value
Shows
--save
flag default value
npm config get save  /  npm get save
by Valeri Tandilashvili
4 years ago
0
NPM
0
Results: 1580