| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3fc3f52 commit ccacf99
421 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,21 +6,27 @@ description: Set access level on published packages | |||
| 6 | 6 | ||
| 7 | 7 | ### Synopsis | |
| 8 | 8 | ||
| 9 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS START --> | ||
| 10 | + <!-- automatically generated, do not edit manually --> | ||
| 11 | + <!-- see lib/commands/access.js --> | ||
| 12 | + | ||
| 9 | 13 | ```bash | |
| 10 | 14 | npm access public [<package>] | |
| 11 | 15 | npm access restricted [<package>] | |
| 12 | - | ||
| 13 | 16 | npm access grant <read-only|read-write> <scope:team> [<package>] | |
| 14 | 17 | npm access revoke <scope:team> [<package>] | |
| 15 | - | ||
| 16 | 18 | npm access 2fa-required [<package>] | |
| 17 | 19 | npm access 2fa-not-required [<package>] | |
| 18 | - | ||
| 19 | 20 | npm access ls-packages [<user>|<scope>|<scope:team>] | |
| 20 | 21 | npm access ls-collaborators [<package> [<user>]] | |
| 21 | 22 | npm access edit [<package>] | |
| 22 | 23 | ``` | |
| 23 | 24 | ||
| 25 | + <!-- automatically generated, do not edit manually --> | ||
| 26 | + <!-- see lib/commands/access.js --> | ||
| 27 | + | ||
| 28 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS END --> | ||
| 29 | + | ||
| 24 | 30 | ### Description | |
| 25 | 31 | ||
| 26 | 32 | Used to set access controls on private packages. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,12 +6,21 @@ description: Add a registry user account | |||
| 6 | 6 | ||
| 7 | 7 | ### Synopsis | |
| 8 | 8 | ||
| 9 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS START --> | ||
| 10 | + <!-- automatically generated, do not edit manually --> | ||
| 11 | + <!-- see lib/commands/adduser.js --> | ||
| 12 | + | ||
| 9 | 13 | ```bash | |
| 10 | - npm adduser [--registry=url] [--scope=@orgname] [--auth-type=legacy] | ||
| 14 | + npm adduser | ||
| 11 | 15 | ||
| 12 | 16 | aliases: login, add-user | |
| 13 | 17 | ``` | |
| 14 | 18 | ||
| 19 | + <!-- automatically generated, do not edit manually --> | ||
| 20 | + <!-- see lib/commands/adduser.js --> | ||
| 21 | + | ||
| 22 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS END --> | ||
| 23 | + | ||
| 15 | 24 | Note: This command is unaware of workspaces. | |
| 16 | 25 | ||
| 17 | 26 | ### Description | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,13 +6,19 @@ description: Run a security audit | |||
| 6 | 6 | ||
| 7 | 7 | ### Synopsis | |
| 8 | 8 | ||
| 9 | - ```bash | ||
| 10 | - npm audit [--json] [--production] [--audit-level=(low|moderate|high|critical)] | ||
| 11 | - npm audit fix [--force|--package-lock-only|--dry-run|--production|--only=(dev|prod)] | ||
| 9 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS START --> | ||
| 10 | + <!-- automatically generated, do not edit manually --> | ||
| 11 | + <!-- see lib/commands/audit.js --> | ||
| 12 | 12 | ||
| 13 | - common options: [--production] [--only=(dev|prod)] | ||
| 13 | + ```bash | ||
| 14 | + npm audit [fix] | ||
| 14 | 15 | ``` | |
| 15 | 16 | ||
| 17 | + <!-- automatically generated, do not edit manually --> | ||
| 18 | + <!-- see lib/commands/audit.js --> | ||
| 19 | + | ||
| 20 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS END --> | ||
| 21 | + | ||
| 16 | 22 | ### Description | |
| 17 | 23 | ||
| 18 | 24 | The audit command submits a description of the dependencies configured in | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,10 +6,19 @@ description: Display npm bin folder | |||
| 6 | 6 | ||
| 7 | 7 | ### Synopsis | |
| 8 | 8 | ||
| 9 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS START --> | ||
| 10 | + <!-- automatically generated, do not edit manually --> | ||
| 11 | + <!-- see lib/commands/bin.js --> | ||
| 12 | + | ||
| 9 | 13 | ```bash | |
| 10 | - npm bin [-g|--global] | ||
| 14 | + npm bin | ||
| 11 | 15 | ``` | |
| 12 | 16 | ||
| 17 | + <!-- automatically generated, do not edit manually --> | ||
| 18 | + <!-- see lib/commands/bin.js --> | ||
| 19 | + | ||
| 20 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS END --> | ||
| 21 | + | ||
| 13 | 22 | Note: This command is unaware of workspaces. | |
| 14 | 23 | ||
| 15 | 24 | ### Description | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,12 +6,21 @@ description: Report bugs for a package in a web browser | |||
| 6 | 6 | ||
| 7 | 7 | ### Synopsis | |
| 8 | 8 | ||
| 9 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS START --> | ||
| 10 | + <!-- automatically generated, do not edit manually --> | ||
| 11 | + <!-- see lib/commands/bugs.js --> | ||
| 12 | + | ||
| 9 | 13 | ```bash | |
| 10 | - npm bugs [<pkgname> [<pkgname> ...]] | ||
| 14 | + npm bugs [<pkgname>] | ||
| 11 | 15 | ||
| 12 | - aliases: issues | ||
| 16 | + alias: issues | ||
| 13 | 17 | ``` | |
| 14 | 18 | ||
| 19 | + <!-- automatically generated, do not edit manually --> | ||
| 20 | + <!-- see lib/commands/bugs.js --> | ||
| 21 | + | ||
| 22 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS END --> | ||
| 23 | + | ||
| 15 | 24 | ### Description | |
| 16 | 25 | ||
| 17 | 26 | This command tries to guess at the likely location of a package's bug | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,18 +6,26 @@ description: Manipulates packages cache | |||
| 6 | 6 | ||
| 7 | 7 | ### Synopsis | |
| 8 | 8 | ||
| 9 | - ```bash | ||
| 10 | - npm cache add <tarball file>... | ||
| 11 | - npm cache add <folder>... | ||
| 12 | - npm cache add <tarball url>... | ||
| 13 | - npm cache add <name>@<version>... | ||
| 14 | - | ||
| 15 | - npm cache clean | ||
| 16 | - aliases: npm cache clear, npm cache rm | ||
| 9 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS START --> | ||
| 10 | + <!-- automatically generated, do not edit manually --> | ||
| 11 | + <!-- see lib/commands/cache.js --> | ||
| 17 | 12 | ||
| 13 | + ```bash | ||
| 14 | + npm cache add <tarball file> | ||
| 15 | + npm cache add <folder> | ||
| 16 | + npm cache add <tarball url> | ||
| 17 | + npm cache add <git url> | ||
| 18 | + npm cache add <name>@<version> | ||
| 19 | + npm cache clean [<key>] | ||
| 20 | + npm cache ls [<name>@<version>] | ||
| 18 | 21 | npm cache verify | |
| 19 | 22 | ``` | |
| 20 | 23 | ||
| 24 | + <!-- automatically generated, do not edit manually --> | ||
| 25 | + <!-- see lib/commands/cache.js --> | ||
| 26 | + | ||
| 27 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS END --> | ||
| 28 | + | ||
| 21 | 29 | Note: This command is unaware of workspaces. | |
| 22 | 30 | ||
| 23 | 31 | ### Description | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,10 +6,21 @@ description: Install a project with a clean slate | |||
| 6 | 6 | ||
| 7 | 7 | ### Synopsis | |
| 8 | 8 | ||
| 9 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS START --> | ||
| 10 | + <!-- automatically generated, do not edit manually --> | ||
| 11 | + <!-- see lib/commands/ci.js --> | ||
| 12 | + | ||
| 9 | 13 | ```bash | |
| 10 | 14 | npm ci | |
| 15 | + | ||
| 16 | + aliases: clean-install, ic, install-clean, isntall-clean | ||
| 11 | 17 | ``` | |
| 12 | 18 | ||
| 19 | + <!-- automatically generated, do not edit manually --> | ||
| 20 | + <!-- see lib/commands/ci.js --> | ||
| 21 | + | ||
| 22 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS END --> | ||
| 23 | + | ||
| 13 | 24 | ### Description | |
| 14 | 25 | ||
| 15 | 26 | This command is similar to [`npm install`](/commands/npm-install), except | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,10 +6,19 @@ description: Tab Completion for npm | |||
| 6 | 6 | ||
| 7 | 7 | ### Synopsis | |
| 8 | 8 | ||
| 9 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS START --> | ||
| 10 | + <!-- automatically generated, do not edit manually --> | ||
| 11 | + <!-- see lib/commands/completion.js --> | ||
| 12 | + | ||
| 9 | 13 | ```bash | |
| 10 | - source <(npm completion) | ||
| 14 | + npm completion | ||
| 11 | 15 | ``` | |
| 12 | 16 | ||
| 17 | + <!-- automatically generated, do not edit manually --> | ||
| 18 | + <!-- see lib/commands/completion.js --> | ||
| 19 | + | ||
| 20 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS END --> | ||
| 21 | + | ||
| 13 | 22 | Note: This command is unaware of workspaces. | |
| 14 | 23 | ||
| 15 | 24 | ### Description | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,18 +6,25 @@ description: Manage the npm configuration files | |||
| 6 | 6 | ||
| 7 | 7 | ### Synopsis | |
| 8 | 8 | ||
| 9 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS START --> | ||
| 10 | + <!-- automatically generated, do not edit manually --> | ||
| 11 | + <!-- see lib/commands/config.js --> | ||
| 12 | + | ||
| 9 | 13 | ```bash | |
| 10 | 14 | npm config set <key>=<value> [<key>=<value> ...] | |
| 11 | 15 | npm config get [<key> [<key> ...]] | |
| 12 | 16 | npm config delete <key> [<key> ...] | |
| 13 | 17 | npm config list [--json] | |
| 14 | 18 | npm config edit | |
| 15 | - npm set <key>=<value> [<key>=<value> ...] | ||
| 16 | - npm get [<key> [<key> ...]] | ||
| 17 | 19 | ||
| 18 | 20 | alias: c | |
| 19 | 21 | ``` | |
| 20 | 22 | ||
| 23 | + <!-- automatically generated, do not edit manually --> | ||
| 24 | + <!-- see lib/commands/config.js --> | ||
| 25 | + | ||
| 26 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS END --> | ||
| 27 | + | ||
| 21 | 28 | Note: This command is unaware of workspaces. | |
| 22 | 29 | ||
| 23 | 30 | ### Description | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,13 +6,21 @@ description: Reduce duplication in the package tree | |||
| 6 | 6 | ||
| 7 | 7 | ### Synopsis | |
| 8 | 8 | ||
| 9 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS START --> | ||
| 10 | + <!-- automatically generated, do not edit manually --> | ||
| 11 | + <!-- see lib/commands/dedupe.js --> | ||
| 12 | + | ||
| 9 | 13 | ```bash | |
| 10 | 14 | npm dedupe | |
| 11 | - npm ddp | ||
| 12 | 15 | ||
| 13 | - aliases: ddp | ||
| 16 | + alias: ddp | ||
| 14 | 17 | ``` | |
| 15 | 18 | ||
| 19 | + <!-- automatically generated, do not edit manually --> | ||
| 20 | + <!-- see lib/commands/dedupe.js --> | ||
| 21 | + | ||
| 22 | + <!-- AUTOGENERATED USAGE DESCRIPTIONS END --> | ||
| 23 | + | ||
| 16 | 24 | ### Description | |
| 17 | 25 | ||
| 18 | 26 | Searches the local package tree and attempts to simplify the overall | |
@@ -145,6 +153,24 @@ When package package-locks are disabled, automatic pruning of extraneous | |||
| 145 | 153 | modules will also be disabled. To remove extraneous modules with | |
| 146 | 154 | package-locks disabled use `npm prune`. | |
| 147 | 155 | ||
| 156 | + This configuration does not affect `npm ci`. | ||
| 157 | + | ||
| 158 | + <!-- automatically generated, do not edit manually --> | ||
| 159 | + <!-- see lib/utils/config/definitions.js --> | ||
| 160 | + | ||
| 161 | + #### `save` | ||
| 162 | + | ||
| 163 | + * Default: `true` unless when using `npm update` or `npm dedupe` where it | ||
| 164 | + defaults to `false` | ||
| 165 | + * Type: Boolean | ||
| 166 | + | ||
| 167 | + Save installed packages to a `package.json` file as dependencies. | ||
| 168 | + | ||
| 169 | + When used with the `npm rm` command, removes the dependency from | ||
| 170 | + `package.json`. | ||
| 171 | + | ||
| 172 | + Will also prevent writing to `package-lock.json` if set to `false`. | ||
| 173 | + | ||
| 148 | 174 | <!-- automatically generated, do not edit manually --> | |
| 149 | 175 | <!-- see lib/utils/config/definitions.js --> | |
| 150 | 176 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments