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

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/man/ls.1
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-05-14 11:50:09 +0400
committerisaacs <i@izs.me>2010-05-14 11:50:09 +0400
commitdcfcd6028d4daa4c36324fc1ed8a8569a6adff5a (patch)
tree752e0a20cd0b5534b68cb4c2e82446dd2e19399b /man/ls.1
parent59d44c8dcec56f13fb3615aed7a410d4bc250c8b (diff)
Update highlighting, and documentation.
Diffstat (limited to 'man/ls.1')
-rw-r--r--man/ls.111
1 files changed, 9 insertions, 2 deletions
diff --git a/man/ls.1 b/man/ls.1
index 067ded05d..b9cecec28 100644
--- a/man/ls.1
+++ b/man/ls.1
@@ -20,13 +20,20 @@ either installed or available in the registry, with their tags and whether
or not they're active and/or stable.
.
.P
-To filter a single package or state, pipe this command through grep.
+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:
.
.IP "" 4
.
.nf
-npm ls | grep @stable
+npm ls @stable
.
.fi
.
.IP "" 0
+.
+.P
+Strings are matched using the JavaScript "split" function, so regular
+expression strings are ok. However, the highlighting is a simple
+split/join, so regexps probably won't get the funky colors.