npm view

查看注册表信息

概要

npm view [<package-spec>] [<field>[.subfield]...]

aliases: info, show, v

描述

此命令显示有关包的数据并将其打印到标准输出。

例如,要从注册表中查看有关 connect 包的信息,您可以运行:

npm view connect

如果未指定,则默认版本为 "latest"

可以在包描述符之后指定字段名称。例如,要显示 0.3.5 版本的 ronn 包的依赖关系,您可以执行以下操作:

npm view ronn@0.3.5 dependencies

VGVMgoPZj7+5/1UZnnHDALDXu3luSpwd8WMg1h5YVaujn8f4uoDVdV+DDqkDwgLoL/VYb1robPHXWK+kaCAcoaoSj494KmWqW0sIatWwVVYCZY54S+YU86t4x6q94NwEOAsQHx+ovTKrXkQO7JyiYCOa6phzWDyTaVk2g4XFSy4z+e7zXzcEgvca70OmeXNemp/E7B+Q+19aq/lKRrMGxA==

npm view npm repository.url

JnUpzE9jDDcV//bqWYsnCW4K5Ho0MX89yYdcRTAmX/p4uNcXCowieUJPbnlF1BPj/k3QwGUGJP3zhpK2oKi6V5EdjkI8edIxXh8NvtS7EM5XgnwevNdohn+d4UwDVfEVCAP44bXVnpb/Sf9pAv7wHya8ReMLHQP39wibZo5WG9Cv2OPPOFwyaIA9OxFd1/m2ovQx9JrzF718xxTjN+9/+QLmRD28RlXr+3ePmvgzSePPXGM7j6gR79Gd2UNdE2Ax

npm view opts@$(npm view ronn dependencies.opts)

TMPMIeAajiBPWE6CnfVAB6n0S53daPfVY4yPOtLOHE5uARwSyrmXBeZgbFZS2KcvgtS+GF7C3uwW3WvuR6Wo84YQiKMirjUz93zwWWhTGVQbNJAjiOUDOPQHNgBPAKgxEpWPJ92VnoMODfjDthE2o8axAkkpQrFhM6q3UXN2bwbZkwO79JIkGgIvLer/hFLQl+aqD1NvTNG9OQ1JabEOhvvtTsEMJioRHSPCZy/97qUS3gXtMtQwkowu5QtF7FEi

npm view express contributors.email

WfCkrHfP/DROt84WSISu/l9uQ/qik2qf86Z2ow+EW5AuVXydjv4RevxYfv8ZluwF5al+dgQnuQ6rCji8nYoUcBQj7RaPvk8QzrmsDItWaKLDSImaGLBwbMHcaJlpX1/WowhyMeClT2uKwGcEGKL9lXSq1PUd5RQbG6liZN3NnIMsSsEApjE7oVQnvAhkQPrbHchmRQWj8twyCFg80WfPM6iKExmymZhgMAs/EhC/2IU=

npm view express contributors[0].email

CgYyUUZF5ZKLrzDHKMUJHYgaHEVjyIArScPrNTL5aF36qitknkIlzCtRGKPD0jqu8wxBjCJBRLssC3SvBRPqRIqp1SUu1L/I6DcCzcDfUvQ=

npm view express time'[4.8.0]'

QmyYjT7eadlvace76hBD7fzKhtBPS4CEM/J1RNlp54PuHEUvLEpMCbejeHBDQTtF9z8GUPJhnqSyuTGAfWzNhbsOu4Nvrg7UmLZ+dotSHGx9ixHzbxMe+/hFNBNyCk1UTYuFgyKRhv/dLtSMRFo52crLJJ7WKXyAYj1CjB/XQ3WxvP/7VfqvfPyVHnRskLoGqIKTYzocBNWaL6YzcRRuFQ==

npm view express contributors.name contributors.email

XCkG9P5b6Novelhr12ntcPwnckvv9WYO+rirsZzNqVrCL8nMph9VT/G1Lb2XtT7arEs1qICgzV5WT+zslxNo0L/IMqMzkYeNcfb1es81Czl/kHSLygwT2x2SkRF7phd7nIxie2LP1tRiZRWf6w9KIQLClUq3wQoon2TrS5XvMiXMaseeLqMR5Wz4bdEokyPIa27EZxw8yK8vwW3euIsai5kDUV2Q9otL5DgJC+PrMPKoPAmDB5rjVaaHLFW2eH+NnQO93T/C5rmbcLhFcLa8JBRkLESSOxIaB3bzfmJ1s5QNqCwAHX/PKTt36911SM8Gvm7lQV/KOLLNG5HOK2y5VYElGvwTBYHRH12OggQbTTeg55Bj3u0lv/yAPhHczpBx

npm view npm contributors

aABo+zmFnDtOGhUtGgunGpP49GabA6qLfvPsrKMSDzgYwc25iz6uITtCU6JD24f1Gre++tv0uD7MBZ8EvNyMTU4+5KICWzOtHQY0O21BoEQbyQI/puSxK4gC/9qmaTodMxIvRc+p2FpZJm2dYjkDux2JBDgJUJu7Zw6v/S9Axv7/tGNZLw6z7yROLu6CZCzGHIW62ZgiW2uuZYoT3IVAyrcc4HK1f+MtrMKs2SCwl5A=

npm view yui3@'>0.5.4' dependencies.jsdom

kuB73L7pc2IN53HHpLzF8MwytETkh9H0EZNSwjeI09oyFJAZExsYFCiJDfeuTIYGBqV2scjhRzvdpZkdOfHka1knnYxE/A7pUhTB62/gHqo=

npm view connect versions

配置

json

    Jo9YyMATQgc1FiySMtnVB2r22JOfbzP94ImRd9QBcoXzhu/uEoooTHYnsxQFqN17radjgV+EY9MnXotENoKrsA==

qxmJciLn6cM8Jx3C8A6mkp7patK5avMEWK3FAKCZGQWqwHeQRlQbKZbAF9STMwRZ5T4Oqnnah/GtuBgV1BwAcw==

    TTIBJ19gwEChqC4GuNJb9/1pKvBUVlbvredyBQ8Hyg5nf4ZcSuVQG62hJzOd3EOnGO62wi94rnL3VWqrE+Dv+PfORdjcB05/WIacWW5WtvD7RJ/CPoPAJprVgoI8YBaktgpTNM8RZCejyf+rW1I9ysI0gfPoD14f/zZ8BPlvBz0iad84tirsUP/XWbDQXqv0EmUK1wbxMkt0yzUZ4szGuQ==

QdF9338OfCSY1LTr0ll7ZkIg8XdUzUjAhPqApA3Lt+qmR4R8UgA1Pu+HeopCPIC8

workspace

    Jo9YyMATQgc1FiySMtnVB4YMB8db7UZN5DIyxKHPry2OmSdp+K3HOJ3BdgWQJYt6tCGvlPdqm/XRnvUydHufmqhIn3jdcfH1Kn7xmtkOnok=

mxwwxmyxfRa/NX5mOTOp/a4pbtoEncEIbcu/bItobyuIXQcms5LhzXDAPZgtFVUAWQV7iHbgNij2yBtG7f0VhSoywJSPEjoJHIrci/HPLjmtfh4imWfDC5UHFL2GHZY0ss32EUEo730we1vYXIcZtblB9YA4BtEoHbMRw22RUeP65aDRMLidjPpjUhvqEYsN

BoYudhX6P4R1Soh/jgAruWdla2jYU6xac7my5c5CKT3I/QY84Lv+gbKiqsys346a

    cU7jI/u+nZ6FiyGSMF84fwc8uqBPenfpfpU5EDAssdJsRYv0W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