npm view

查看注册表信息

概要

npm view [<@scope>/]<name>[@<version>] [<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

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

npm view express contributors.name contributors.email

XCkG9P5b6Novelhr12ntcPwnckvv9WYO+rirsZzNqVrCL8nMph9VT/G1Lb2XtT7arEs1qICgzV5WT+zslxNo0L/IMqMzkYeNcfb1es81Czl/kHSLygwT2x2SkRF7phd7nIxie2LP1tRiZRWf6w9KIQLClUq3wQoon2TrS5XvMiXMaseeLqMR5Wz4bdEokyPIa27EZxw8yK8vwW3euIsai5kDUV2Q9otL5DgJC+PrMPKoPAmDB5rjVaaHLFW2eH+NnQO93T/C5rmbcLhFcLa8JEiqgqP40d4In4Gp0vbeAoRI3YgYhOGsHYYWNNLa0b4uJiknGOU39xDNx0ygy/jvvxvfw4hAmQ+gADZ4JK0OVMIX+PCWv9TrGcjvNmHQLbgl

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+nZ6FiyGSMF84fwc8uqBPenfpfpU5EDAssdJsRYv0Wpcmk6KnorwqXaIjJcHDqpXKV9FK+ctwsWVS27n+gIzaTMKuPizZgazJZ/OPnN3hqRWu4L51vlfOeq/k0sxf1WvZc4irgeB3jL/1nA7bjnS2XbN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