NPM-SEARCH(3)
๐ NAME ๐
okay so you're looking at npm-search โ the manual page is NPM-SEARCH(3) โ and it does exactly what it says: search for packages ๐. That's the name, bestie. We love a straightforward icon.
๐ฆ SYNOPSIS ๐ฆ
npm.commands.search(searchTerms, [silent,] [staleness,] callback)
๐ DESCRIPTION ๐
It searches the registry for packages that match your search terms ๐โจ. The parameters you can pass are:
searchTermsโ an array of search terms. These terms are case-insensitive, so uppercase/lowercase is not the vibe check.silentโ if this istrue, npm will not log anything to the console. total stealth mode ๐คซstalenessโ this is the threshold for stale packages."Fresh"packages are not refreshed from the registry. This value is measured in seconds โฑ๏ธ.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. That'words'property 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:namedescriptionmaintainersurlkeywords
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. no psychic vibes, just matching ๐ฎ๐
okay bye bestie ๐ซถ this was the NPM-SEARCH(3) manual, March 2017 edition ๐
โจ
๐ฆ where this page comes from
- nixos 26.05: hueadm 1.2.1
- nixpkgs unstable: hueadm 1.2.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms