blob: 23b3be94413903b2ac774fa9c23aa6b2375d530c (
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
|
.\" Generated with Ronnjs 0.3.8
.\" http://github.com/kapouer/ronnjs/
.
.TH "NPM\-HELP\-SEARCH" "3" "May 2013" "" ""
.
.SH "NAME"
\fBnpm-help-search\fR \-\- Search the help pages
.
.SH "SYNOPSIS"
.
.nf
npm\.commands\.helpSearch(args, [silent,] callback)
.
.fi
.
.SH "DESCRIPTION"
This command is rarely useful, but it exists in the rare case that it is\.
.
.P
This command takes an array of search terms and returns the help pages that
match in order of best match\.
.
.P
If there is only one match, then npm displays that help section\. If there
are multiple results, the results are printed to the screen formatted and the
array of results is returned\. Each result is an object with these properties:
.
.IP "\(bu" 4
hits:
A map of args to number of hits on that arg\. For example, {"npm": 3}
.
.IP "\(bu" 4
found:
Total number of unique args that matched\.
.
.IP "\(bu" 4
totalHits:
Total number of hits\.
.
.IP "\(bu" 4
lines:
An array of all matching lines (and some adjacent lines)\.
.
.IP "\(bu" 4
file:
Name of the file that matched
.
.IP "" 0
.
.P
The silent parameter is not neccessary not used, but it may in the future\.
|