GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NPM-SEARCH (3)

NAME

npm-search - Search for packages

CONTENTS

Description

SYNOPSIS

npm.commands.search(searchTerms, [silent,] [staleness,] callback)

DESCRIPTION

Search the registry for packages matching the search terms. The available parameters are:

o searchTerms: Array of search terms. These terms are case-insensitive.
o silent: If true, npm will not log anything to the console.
o staleness: This is the threshold for stale packages. "Fresh" packages are not refreshed from the registry. This value is measured in seconds.
o callback: Returns an object where each key is the name of a package, and the value is information about that package along with a ’words’ property, which is a space-delimited string of all of the interesting words in that package. The only properties included are those that are searched, which generally include:
o name
o description
o maintainers
o url
o keywords

A search on the registry excludes any result that does not match all of the search terms. It also removes any items from the results that contain an excluded term (the "searchexclude" config). The search is case insensitive and doesn’t try to read your mind (it doesn’t do any verb tense matching or the like).

Search for    or go to Top of page |  Section 3 |  Main Index


NPM-SEARCH (3) October 2015

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.