]> 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-search.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-search.md
1 npm-search(3) -- Search for packages
2 ====================================
3
4 ## SYNOPSIS
5
6     npm.commands.search(searchTerms, [silent,] [staleness,] callback)
7
8 ## DESCRIPTION
9
10 Search the registry for packages matching the search terms. The available parameters are:
11
12 * searchTerms:
13   Array of search terms. These terms are case-insensitive.
14 * silent:
15   If true, npm will not log anything to the console.
16 * staleness:
17   This is the threshold for stale packages. "Fresh" packages are not refreshed
18   from the registry. This value is measured in seconds.
19 * callback:
20   Returns an object where each key is the name of a package, and the value
21   is information about that package along with a 'words' property, which is
22   a space-delimited string of all of the interesting words in that package.
23   The only properties included are those that are searched, which generally include:
24
25     * name
26     * description
27     * maintainers
28     * url
29     * keywords
30
31 A search on the registry excludes any result that does not match all of the
32 search terms. It also removes any items from the results that contain an
33 excluded term (the "searchexclude" config). The search is case insensitive
34 and doesn't try to read your mind (it doesn't do any verb tense matching or the
35 like).