-
Notifications
You must be signed in to change notification settings - Fork 3.7k
docs: consolidate docs and help for package spec #5048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ description: Deprecate a version of a package | |
<!-- see lib/commands/deprecate.js --> | ||
|
||
```bash | ||
npm deprecate <pkg>[@<version>] <message> | ||
npm deprecate <package-spec> <message> | ||
``` | ||
|
||
<!-- automatically generated, do not edit manually --> | ||
|
@@ -45,8 +45,8 @@ In this case, a version `[email protected]` will also be deprecated. | |
You must be the package owner to deprecate something. See the `owner` and | ||
`adduser` help topics. | ||
|
||
To un-deprecate a package, specify an empty string (`""`) for the `message` | ||
argument. Note that you must use double quotes with no space between them to | ||
To un-deprecate a package, specify an empty string (`""`) for the `message` | ||
argument. Note that you must use double quotes with no space between them to | ||
format an empty string. | ||
|
||
### Configuration | ||
|
@@ -82,6 +82,7 @@ password, npm will prompt on the command line for one. | |
|
||
### See Also | ||
|
||
* [package spec](/using-npm/package-spec) | ||
* [npm publish](/commands/npm-publish) | ||
* [npm registry](/using-npm/registry) | ||
* [npm owner](/commands/npm-owner) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ description: Retrieve funding information | |
<!-- see lib/commands/fund.js --> | ||
|
||
```bash | ||
npm fund [[<@scope>/]<pkg>] | ||
npm fund [<package-spec>] | ||
``` | ||
|
||
<!-- automatically generated, do not edit manually --> | ||
|
@@ -23,22 +23,22 @@ npm fund [[<@scope>/]<pkg>] | |
|
||
This command retrieves information on how to fund the dependencies of a | ||
given project. If no package name is provided, it will list all | ||
dependencies that are looking for funding in a tree structure, listing the | ||
type of funding and the url to visit. If a package name is provided then it | ||
tries to open its funding url using the `--browser` config param; if there | ||
are multiple funding sources for the package, the user will be instructed | ||
to pass the `--which` option to disambiguate. | ||
dependencies that are looking for funding in a tree structure, listing | ||
the type of funding and the url to visit. If a package name is provided | ||
then it tries to open its funding url using the `--browser` config | ||
param; if there are multiple funding sources for the package, the user | ||
will be instructed to pass the `--which` option to disambiguate. | ||
|
||
The list will avoid duplicated entries and will stack all packages that | ||
share the same url as a single entry. Thus, the list does not have the same | ||
shape of the output from `npm ls`. | ||
share the same url as a single entry. Thus, the list does not have the | ||
same shape of the output from `npm ls`. | ||
|
||
#### Example | ||
|
||
### Workspaces support | ||
|
||
It's possible to filter the results to only include a single workspace and its | ||
dependencies using the `workspace` config option. | ||
It's possible to filter the results to only include a single workspace | ||
and its dependencies using the `workspace` config option. | ||
|
||
#### Example: | ||
|
||
|
@@ -58,8 +58,8 @@ [email protected] | |
`-- [email protected] | ||
``` | ||
|
||
And here is an example of the expected result when filtering only by | ||
a specific workspace `a` in the same project: | ||
And here is an example of the expected result when filtering only by a | ||
specific workspace `a` in the same project: | ||
|
||
```bash | ||
$ npm fund -w a | ||
|
@@ -156,6 +156,7 @@ If there are multiple funding sources, which 1-indexed source URL to open. | |
|
||
## See Also | ||
|
||
* [package spec](/using-npm/package-spec) | ||
* [npm install](/commands/npm-install) | ||
* [npm docs](/commands/npm-docs) | ||
* [npm ls](/commands/npm-ls) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.