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 / ls.html @ 5aef65a9

History | View | Annotate | Download (2.91 KB)

1
<!doctype html>
2
<html>
3
  <title>ls</title>
4
  <meta http-equiv="content-type" value="text/html;utf-8">
5
  <link rel="stylesheet" type="text/css" href="../static/style.css">
6

    
7
  <body>
8
    <div id="wrapper">
9
<h1><a href="../doc/ls.html">ls</a></h1> <p>List installed packages</p>
10

    
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
<pre><code>npm@1.2.10 /path/to/npm
29
└─┬ init-package-json@0.0.4
30
  └── promzard@0.1.5</code></pre>
31

    
32
<p>It will show print out extraneous, missing, and invalid packages.</p>
33

    
34
<p>When run as <code>ll</code> or <code>la</code>, it shows extended information by default.</p>
35

    
36
<h2 id="CONFIGURATION">CONFIGURATION</h2>
37

    
38
<h3 id="json">json</h3>
39

    
40
<ul><li>Default: false</li><li>Type: Boolean</li></ul>
41

    
42
<p>Show information in JSON format.</p>
43

    
44
<h3 id="long">long</h3>
45

    
46
<ul><li>Default: false</li><li>Type: Boolean</li></ul>
47

    
48
<p>Show extended information.</p>
49

    
50
<h3 id="parseable">parseable</h3>
51

    
52
<ul><li>Default: false</li><li>Type: Boolean</li></ul>
53

    
54
<p>Show parseable output instead of tree view.</p>
55

    
56
<h3 id="global">global</h3>
57

    
58
<ul><li>Default: false</li><li>Type: Boolean</li></ul>
59

    
60
<p>List packages in the global install prefix instead of in the current
61
project.</p>
62

    
63
<h2 id="SEE-ALSO">SEE ALSO</h2>
64

    
65
<ul><li><a href="../doc/config.html">config(1)</a></li><li><a href="../doc/folders.html">folders(1)</a></li><li><a href="../doc/install.html">install(1)</a></li><li><a href="../doc/link.html">link(1)</a></li><li><a href="../doc/prune.html">prune(1)</a></li><li><a href="../doc/outdated.html">outdated(1)</a></li><li><a href="../doc/update.html">update(1)</a></li></ul>
66
</div>
67
<p id="footer">ls &mdash; npm@1.2.10</p>
68
<script>
69
;(function () {
70
var wrapper = document.getElementById("wrapper")
71
var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
72
  .filter(function (el) {
73
    return el.parentNode === wrapper
74
        && el.tagName.match(/H[1-6]/)
75
        && el.id
76
  })
77
var l = 2
78
  , toc = document.createElement("ul")
79
toc.innerHTML = els.map(function (el) {
80
  var i = el.tagName.charAt(1)
81
    , out = ""
82
  while (i > l) {
83
    out += "<ul>"
84
    l ++
85
  }
86
  while (i < l) {
87
    out += "</ul>"
88
    l --
89
  }
90
  out += "<li><a href='#" + el.id + "'>" +
91
    ( el.innerText || el.text || el.innerHTML)
92
    + "</a>"
93
  return out
94
}).join("\n")
95
toc.id = "toc"
96
document.body.appendChild(toc)
97
})()
98
</script>
99
</body></html>