The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / deps / npm / html / doc / cli / npm-ls.html @ 5e865191

History | View | Annotate | Download (3.25 KB)

1 54a4c639 isaacs
<!doctype html>
2
<html>
3 ff8a4058 isaacs
  <title>npm-ls</title>
4 54a4c639 isaacs
  <meta http-equiv="content-type" value="text/html;utf-8">
5 ff8a4058 isaacs
  <link rel="stylesheet" type="text/css" href="../../static/style.css">
6 54a4c639 isaacs
7
  <body>
8
    <div id="wrapper">
9 ff8a4058 isaacs
<h1><a href="../cli/npm-ls.html">npm-ls</a></h1> <p>List installed packages</p>
10 54a4c639 isaacs
11
<h2 id="SYNOPSIS">SYNOPSIS</h2>
12
13
<pre><code>npm list [&lt;pkg&gt; ...]
14
npm ls [&lt;pkg&gt; ...]
15
npm la [&lt;pkg&gt; ...]
16
npm ll [&lt;pkg&gt; ...]</code></pre>
17
18
<h2 id="DESCRIPTION">DESCRIPTION</h2>
19
20
<p>This command will print to stdout all the versions of packages that are
21
installed, as well as their dependencies, in a tree-structure.</p>
22
23
<p>Positional arguments are <code>name@version-range</code> identifiers, which will
24
limit the results to only the paths to the packages named.  Note that
25
nested packages will <em>also</em> show the paths to the specified packages.
26
For example, running <code>npm ls promzard</code> in npm&#39;s source tree will show:</p>
27
28 5e865191 isaacs
<pre><code>npm@1.3.4 /path/to/npm
29 54a4c639 isaacs
└─┬ init-package-json@0.0.4
30
  └── promzard@0.1.5</code></pre>
31
32 f5602bda isaacs
<p>It will print out extraneous, missing, and invalid packages.</p>
33
34
<p>If a project specifies git urls for dependencies these are shown
35
in parentheses after the name@version to make it easier for users to
36
recognize potential forks of a project.</p>
37 54a4c639 isaacs
38
<p>When run as <code>ll</code> or <code>la</code>, it shows extended information by default.</p>
39
40
<h2 id="CONFIGURATION">CONFIGURATION</h2>
41
42
<h3 id="json">json</h3>
43
44
<ul><li>Default: false</li><li>Type: Boolean</li></ul>
45
46
<p>Show information in JSON format.</p>
47
48
<h3 id="long">long</h3>
49
50
<ul><li>Default: false</li><li>Type: Boolean</li></ul>
51
52
<p>Show extended information.</p>
53
54
<h3 id="parseable">parseable</h3>
55
56
<ul><li>Default: false</li><li>Type: Boolean</li></ul>
57
58
<p>Show parseable output instead of tree view.</p>
59
60
<h3 id="global">global</h3>
61
62
<ul><li>Default: false</li><li>Type: Boolean</li></ul>
63
64
<p>List packages in the global install prefix instead of in the current
65
project.</p>
66
67
<h2 id="SEE-ALSO">SEE ALSO</h2>
68
69 ff8a4058 isaacs
<ul><li><a href="../cli/npm-config.html">npm-config(1)</a></li><li><a href="../misc/npm-config.html">npm-config(7)</a></li><li><a href="../files/npmrc.html">npmrc(5)</a></li><li><a href="../misc/npm-folders.html">npm-folders(7)</a></li><li><a href="../cli/npm-install.html">npm-install(1)</a></li><li><a href="../cli/npm-link.html">npm-link(1)</a></li><li><a href="../cli/npm-prune.html">npm-prune(1)</a></li><li><a href="../cli/npm-outdated.html">npm-outdated(1)</a></li><li><a href="../cli/npm-update.html">npm-update(1)</a></li></ul>
70 54a4c639 isaacs
</div>
71 5e865191 isaacs
<p id="footer">npm-ls &mdash; npm@1.3.4</p>
72 54a4c639 isaacs
<script>
73
;(function () {
74
var wrapper = document.getElementById("wrapper")
75
var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
76
  .filter(function (el) {
77
    return el.parentNode === wrapper
78
        && el.tagName.match(/H[1-6]/)
79
        && el.id
80
  })
81
var l = 2
82
  , toc = document.createElement("ul")
83
toc.innerHTML = els.map(function (el) {
84
  var i = el.tagName.charAt(1)
85
    , out = ""
86
  while (i > l) {
87
    out += "<ul>"
88
    l ++
89
  }
90
  while (i < l) {
91
    out += "</ul>"
92
    l --
93
  }
94
  out += "<li><a href='#" + el.id + "'>" +
95
    ( el.innerText || el.text || el.innerHTML)
96
    + "</a>"
97
  return out
98
}).join("\n")
99
toc.id = "toc"
100
document.body.appendChild(toc)
101
})()
102
</script>