Welcome to mirror list, hosted at ThFree Co, Russian Federation.

list.md « doc - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 60b71d48007b0ebd9bf410655c969b7cd3c38695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
npm-list(1) -- List installed packages
======================================

## SYNOPSIS

    npm list
    npm ls

## DESCRIPTION

This command will print to stdout all the versions of packages that are
either installed or available in the registry, with their tags and whether
or not they're active and/or stable.

To filter a single package or state, you can provide words to filter on
and highlight (if appropriate).  For instance, to see all the stable
packages, you could do this:

    npm ls stable

Another common usage is to find the set of all packages that are 
installed. This can be accomplished by doing this:

    npm ls installed

## CONFIGURATION

### registry

Default: https://registry.npmjs.org/

The base URL of the npm package registry.

### listopts

Default: ""

A whitespace-separated list of extra args that are always passed to npm ls

For example: `listopts = remote`

`npm ls`

The output here will always filter by remote

### description

Default: true

Show the package description in npm ls.

### outfd

Default: Standard Output FD (1)

The file descriptor (integer) or stream object where npm will write
"normal" output.  For instance, the `ls` and `view` commands write their
output here.

When using npm programmatically, you may want to provide a
FileWriteStream, or some other form of WritableStream.

### color

Default: true

Set to false to disable colorized output.

In versions of node that expose the `isatty` function, npm will never
write colorized output to a non-terminal file descriptor.