]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/doc/api/npm-ls.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / doc / api / npm-ls.md
1 npm-ls(3) -- List installed packages
2 ======================================
3
4 ## SYNOPSIS
5
6     npm.commands.ls(args, [silent,] callback)
7
8 ## DESCRIPTION
9
10 This command will print to stdout all the versions of packages that are
11 installed, as well as their dependencies, in a tree-structure. It will also
12 return that data using the callback.
13
14 This command does not take any arguments, but args must be defined.
15 Beyond that, if any arguments are passed in, npm will politely warn that it
16 does not take positional arguments, though you may set config flags
17 like with any other command, such as `global` to list global packages.
18
19 It will print out extraneous, missing, and invalid packages.
20
21 If the silent parameter is set to true, nothing will be output to the screen,
22 but the data will still be returned.
23
24 Callback is provided an error if one occurred, the full data about which
25 packages are installed and which dependencies they will receive, and a
26 "lite" data object which just shows which versions are installed where.
27 Note that the full data object is a circular structure, so care must be
28 taken if it is serialized to JSON.
29
30 ## CONFIGURATION
31
32 ### long
33
34 * Default: false
35 * Type: Boolean
36
37 Show extended information.
38
39 ### parseable
40
41 * Default: false
42 * Type: Boolean
43
44 Show parseable output instead of tree view.
45
46 ### global
47
48 * Default: false
49 * Type: Boolean
50
51 List packages in the global install prefix instead of in the current
52 project.
53
54 Note, if parseable is set or long isn't set, then duplicates will be trimmed.
55 This means that if a submodule has the same dependency as a parent module, then the
56 dependency will only be output once.