npm search

搜索包

概要

npm search [-l|--long] [--json] [--parseable] [--no-description] [search terms ...]

aliases: s, se, find

描述

在注册表中搜索与搜索词匹配的包。npm search 通过包元数据对注册表中的所有文件执行线性、增量、按词法排序的搜索。如果启用了颜色,它将进一步突出显示结果中的匹配项。

此外,使用与更多搜索词配对的 --searchopts--searchexclude 选项将分别包含和排除更多模式。--searchopts 与标准搜索词的主要区别在于前者不会在输出中突出显示结果,可用于更细粒度的过滤。此外,这两个都可以添加到 .npmrc 以实现默认搜索过滤行为。

搜索还允许在搜索结果中定位维护者,方法是在他们的 npm 用户名前加上 =

如果一个词以 / 开头,那么它会被解释为一个正则表达式并支持标准的 JavaScript RegExp 语法。在这种情况下,后面的 / 将被忽略。(请注意,在大多数 shell 中,许多正则表达式字符必须进行转义或引用。)

缓存注意事项

配置

description

    1rokL6V6UHCZfWr+mBKeqsSe/jT+m1WZ1v0DrTM1PSJj/XxfVgDKSffK0qBh7aFJj8hx01FJqUEYmatZ8zwz5g==

RgIAT0mTg/ZZLUrO9xekOwoaEoQ/uvEQgHmHYqRA52LUEWqPnzY3TWalwXtsUGKcZbBMqHtEDwXm91pHv447ntQF/V19RIROtU2owWa0WMNsugftqAxp15WmH9lKpbLIFGUgKWZ8ZJD4VhG/DliD9A==

json

    1rokL6V6UHCZfWr+mBKeqgKfAZFOm8muuzL7jN1R2TpPkIMwxKXStfDfaZ1Lv1AmhCrIRLfS11y3WVpwvsOw9g==

3fny99bV69upkFXqQQ4CwjLyLWgrN0plHioqZ0Tnz0cvRH+7TwRBRJMwLKxBVPTT

parseable

    1rokL6V6UHCZfWr+mBKeqgKfAZFOm8muuzL7jN1R2TpPkIMwxKXStfDfaZ1Lv1AmhCrIRLfS11y3WVpwvsOw9g==

3fny99bV69upkFXqQQ4CwnTgywalb9yTYyEOYcDjzx09dGyU6iU10tx37iMwzpTnotcH9VaJ/YsX4Mx7bj11EA==

long

    1rokL6V6UHCZfWr+mBKeqgKfAZFOm8muuzL7jN1R2TpPkIMw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