npm search

搜索包

概要

npm search [search terms ...]

aliases: find, s, se

注意:此命令对工作区无感知。

描述

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

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

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

jFhBfaURNzvam0ju4xOT7X177P1mCm2tfeLIo+vUFol75rWJgZgJOAiLZK5DrIBxPu3Y/jztLwkDPzicA4j3Y5Tc1R1g2YGNbpp3N1418x7E/2BYLj7YYyH7px4Yp06ykPC3UkcSDtbn/EY8VM+5E+15AT3wVYQZIZOoVt/tMO2BgrWxx1zx4KCGy3oIsAb2VwOknXcqsw579cL1JrpWbVWALCjyWoa7fvOAPFfbQ0uXmExJ7N2ESq/4B4VvDEcizrIlS7eYAQV/S38VGUYEOAkpVcZAA56RgApAedxDnrV6eZU0Jv0cyOVgJy2GEdEK5GW1p1VdN+1iT81kfAUMcvZFl7qtBKOqsL+kz4ZrvuvnW17PlfmOeRXx1Nm/GlsB/UDKgHlWM+FZSmTGzDCX4Q==

配置

long

    1rokL6V6UHCZfWr+mBKeqgKfAZFOm8muuzL7jN1R2TpPkIMwxKXStfDfaZ1Lv1AmhCrIRLfS11y3WVpwvsOw9g==

4mBQUD9mYFxWNlpOiFNv2QKPEfLydHbmLp2ofWYDX3dVxgP+PWhdgZeP6LjnmCJoYou9jMMJcZrK3wdAcfyJCntKAIL0io+HUE5IV+eax5ykNZ1Q3K+d2uZd5Ad8HOGT

json

    1rokL6V6UHCZfWr+mBKeqgKfAZFOm8muuzL7jN1R2TpPkIMwxKXStfDfaZ1Lv1AmhCrIRLfS11y3WVpwvsOw9g==

7/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ZfWr+mBKeqsSe/jT+m1WZ1v0DrTM1PSJj/XxfVgDKSffK0qBh7aFJj8hx01FJqUEYmatZ8zwz5g==

SEu6Ff9YWq90CvuocFFq9aVD+2JnyNI03r6Z0JrlzJoy3T2If1VjTD97cmkWtiLC

searchopts

    1rokL6V6UHCZfWr+mBKequ9Zvh+AFwkkW3VeBupDyYqsnJzZWgS+SAtCXnB66t2MqZ81DeWhi0W0jfUa2nMhQA==

mdquE7drq7lG7YpR8ameYfnNrq0FOmiRl+k7ptMT77Y22ZoXvKBLN4RZ9Sddnq2b

searchexclude

    1rokL6V6UHCZfWr+mBKequ9Zvh+AFwkkW3VeBupDyYqsnJzZWgS+SAtCXnB66t2MqZ81DeWhi0W0jfUa2nMhQA==

1+ieEwA4cKIrs43dbwd6jjx95Ta8QUkNTeGzONiUpspbdww9FKYPm+H+/G+NZmNv

registry

    1rokL6V6UHCZfWr+mBKeqokCeIze5vTfaFiiDV4CuLVfgL+xRgyuKkapEVWcrirpPV7frVlJ0EN8tDhD+ZVMUnazrMDVTEWHSzToQ35Mf3tcI13RXGrvf3gOeW/sOfBB6mGSP/zoRbzOGnAqkW4AwUkZXIIcv2RtcdQtbiTeaYo=

+oYWa8nPyo3afbmXAZ2/8b3Qg2N6geEZesScSRZmusg=

prefer-online

    1rokL6V6UHCZfWr+mBKeqgKfAZFOm8muuzL7jN1R2TpPkIMwxKXStfDfaZ1Lv1AmhCrIRLfS11y3WVpwvsOw9g==

ab83HoAYSk+z2CLKLowe9eXOzGgF4AxvIFJ2+zkN3PJWOI6EzU69ymg0ghUzvSO+e7whn2FI8ajPAUx8rVGZnKudtSHz5yK+v+9iWklEwJKia0y0xRhEX3sVt5o74WW4Gyt5JIpX8aoas9uDK77F2MBM6AgUiKYkaVrR2LbsLxQ=

prefer-offline

    1rokL6V6UHCZfWr+mBKeqgKfAZFOm8muuzL7jN1R2TpPkIMwxKXStfDfaZ1Lv1AmhCrIRLfS11y3WVpwvsOw9g==

ab83HoAYSk+z2C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