NPM-SEARCH(3)

๐Ÿ“ฆ version 1.2.1, in nixos 26.05, nixpkgs unstable

๐Ÿ’– 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 is true, 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:
    • name
    • description
    • maintainers
    • url
    • 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. no psychic vibes, just matching ๐Ÿ”ฎ๐Ÿ™…


okay bye bestie ๐Ÿซถ this was the NPM-SEARCH(3) manual, March 2017 edition ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from