forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: nodejs#50751 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]>
- Loading branch information
1 parent
cf3f7a8
commit 57d3131
Showing
143 changed files
with
2,417 additions
and
1,013 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -27,7 +27,7 @@ packages will *also* show the paths to the specified packages. For | |
example, running `npm ls promzard` in npm's source tree will show: | ||
|
||
```bash | ||
[email protected].3 /path/to/npm | ||
[email protected].4 /path/to/npm | ||
└─┬ [email protected] | ||
└── [email protected] | ||
``` | ||
|
This file contains 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 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 |
---|---|---|
|
@@ -32,6 +32,13 @@ For example, to show the dependencies of the `ronn` package at version | |
npm view [email protected] dependencies | ||
``` | ||
|
||
By default, `npm view` shows data about the current project context (by looking for a `package.json`). | ||
To show field data for the current project use a file path (i.e. `.`): | ||
|
||
```bash | ||
npm view . dependencies | ||
``` | ||
|
||
You can view child fields by separating them with a period. | ||
To view the git repository URL for the latest version of `npm`, you would run the following command: | ||
|
||
|
This file contains 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 |
---|---|---|
|
@@ -14,7 +14,7 @@ Note: This command is unaware of workspaces. | |
|
||
### Version | ||
|
||
10.2.3 | ||
10.2.4 | ||
|
||
### Description | ||
|
||
|
This file contains 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 |
---|---|---|
|
@@ -160,7 +160,7 @@ <h3 id="description">Description</h3> | |
the results to only the paths to the packages named. Note that nested | ||
packages will <em>also</em> show the paths to the specified packages. For | ||
example, running <code>npm ls promzard</code> in npm's source tree will show:</p> | ||
<pre><code class="language-bash">[email protected].3 /path/to/npm | ||
<pre><code class="language-bash">[email protected].4 /path/to/npm | ||
└─┬ [email protected] | ||
└── [email protected] | ||
</code></pre> | ||
|
This file contains 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 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 |
---|---|---|
|
@@ -161,6 +161,10 @@ <h3 id="description">Description</h3> | |
<code>0.3.5</code>, you could do the following:</p> | ||
<pre><code class="language-bash">npm view [email protected] dependencies | ||
</code></pre> | ||
<p>By default, <code>npm view</code> shows data about the current project context (by looking for a <code>package.json</code>). | ||
To show field data for the current project use a file path (i.e. <code>.</code>):</p> | ||
<pre><code class="language-bash">npm view . dependencies | ||
</code></pre> | ||
<p>You can view child fields by separating them with a period. | ||
To view the git repository URL for the latest version of <code>npm</code>, you would run the following command:</p> | ||
<pre><code class="language-bash">npm view npm repository.url | ||
|
This file contains 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 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 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 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 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 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.