npm info [package]
等同于npm show [package]
和npm view [package]
。
如果你想看到关于特定的包的信息,可以使用npm info
命令来查看该包的所有信息:
查看npm info
的帮助:
示例:
npm info mysql
结果如下:
{ name: 'mysql',
'dist-tags':
{ latest: '2.10.0',
'2.0.0-alpha': '2.0.0-alpha',
'2.0.0-alpha2': '2.0.0-alpha2',
alpha3: '2.0.0-alpha3' },
versions:
[ '0.1.0',
'0.2.0',
'0.3.0',
'0.4.0',
'0.5.0',
'0.6.0',
'0.7.0',
'0.8.0',
'0.9.0',
'0.9.1',
'0.9.2',
'0.9.3',
'0.9.4',
'0.9.5',
'0.9.6',
'2.0.0-alpha',
'2.0.0-alpha2',
'2.0.0-alpha3',
'2.0.0-alpha4',
'2.0.0-alpha5',
'2.0.0-alpha6',
'2.0.0-alpha7',
'2.0.0-alpha8',
'2.0.0-alpha9',
'2.0.0-rc1',
'2.0.0-rc2',
'2.0.0',
'2.0.1',
'2.1.0',
'2.1.1',
'2.2.0',
'2.3.0',
'2.3.1',
'2.3.2',
'2.4.0',
'2.4.1',
'2.4.2',
'2.4.3',
'2.5.0',
'2.5.1',
'2.5.2',
'2.5.3',
'2.5.4',
'2.5.5',
'2.6.0',
'2.6.1',
'2.6.2',
'2.7.0',
'2.8.0',
'2.9.0',
'2.10.0' ],
maintainers:
[ 'felixge ',
'egorfine ',
'dresende ',
'femto113 ',
'nate.lillich ',
'tolgaek ',
'sidorares ',
'seanmonstar ',
'dougwilson ' ],
time:
{ modified: '2015-12-15T18:06:30.504Z',
created: '2011-01-03T23:04:56.752Z',
'0.1.0': '2011-01-03T23:04:56.752Z',
'0.2.0': '2011-01-03T23:04:56.752Z',
'0.3.0': '2011-01-03T23:04:56.752Z',
'0.4.0': '2011-01-03T23:04:56.752Z',
'0.5.0': '2011-01-03T23:04:56.752Z',
'0.6.0': '2011-01-03T23:04:56.752Z',
'0.7.0': '2011-01-03T23:04:56.752Z',
'0.8.0': '2011-01-03T23:04:56.752Z',
'0.9.0': '2011-01-03T23:04:56.752Z',
'0.9.1': '2011-02-20T14:01:06.807Z',
'0.9.2': '2011-08-07T13:27:59.314Z',
'0.9.3': '2011-08-22T13:56:14.363Z',
'0.9.4': '2011-08-31T14:54:08.105Z',
'0.9.5': '2011-11-26T11:36:52.349Z',
'2.0.0-preview': '2012-05-11T09:53:27.119Z',
'0.9.6': '2012-05-11T09:58:50.883Z',
'2.0.0-alpha': '2012-05-15T09:01:16.968Z',
'2.0.0-alpha2': '2012-05-31T05:10:10.115Z',
'2.0.0-alpha3': '2012-06-25T03:16:45.637Z',
'2.0.0-alpha4': '2012-11-03T00:49:26.931Z',
'2.0.0-alpha5': '2012-12-03T19:30:57.760Z',
'2.0.0-alpha6': '2013-01-31T00:39:14.614Z',
'2.0.0-alpha7': '2013-02-03T21:35:10.136Z',
'2.0.0-alpha8': '2013-04-30T18:06:11.127Z',
'2.0.0-alpha9': '2013-08-28T00:57:36.972Z',
'2.0.0-rc1': '2013-11-30T10:19:02.504Z',
'2.0.0-rc2': '2013-12-06T13:35:50.415Z',
'2.0.0': '2014-01-09T04:02:02.741Z',
'2.0.1': '2014-01-17T06:39:27.199Z',
'2.1.0': '2014-02-19T15:04:37.924Z',
'2.1.1': '2014-03-14T00:51:22.587Z',
'2.2.0': '2014-04-27T22:58:19.306Z',
'2.3.0': '2014-05-16T16:36:49.783Z',
'2.3.1': '2014-05-27T03:31:59.647Z',
'2.3.2': '2014-05-29T18:29:44.076Z',
'2.4.0': '2014-07-13T18:16:44.996Z',
'2.4.1': '2014-07-17T22:12:29.625Z',
'2.4.2': '2014-08-04T02:18:03.317Z',
'2.4.3': '2014-08-25T05:16:24.055Z',
'2.5.0': '2014-09-07T20:57:32.558Z',
'2.5.1': '2014-09-22T19:51:00.229Z',
'2.5.2': '2014-10-11T01:07:50.906Z',
'2.5.3': '2014-11-06T06:11:45.367Z',
'2.5.4': '2014-12-17T02:37:05.257Z',
'2.5.5': '2015-02-24T04:28:41.214Z',
'2.6.0': '2015-03-25T03:51:13.552Z',
'2.6.1': '2015-03-27T06:06:14.003Z',
'2.6.2': '2015-04-15T03:02:42.521Z',
'2.7.0': '2015-05-28T01:47:38.327Z',
'2.8.0': '2015-07-14T04:48:01.644Z',
'2.9.0': '2015-08-19T23:15:12.135Z',
'2.10.0': '2015-12-15T18:06:30.504Z' },
description: 'A node.js driver for mysql. It is written in JavaScript, does not require compiling, and is 100% MIT licensed.',
author: 'Felix Geisendörfer (http://debuggable.com/)',
repository: { type: 'git', url: 'https://github.com/felixge/node-mysql' },
users:
{ dresende: true,
fgribreau: true,
hyq: true,
tellnes: true,
alexindigo: true,
miloss: true,
bat: true,
mmckegg: true,
dacohen: true,
'cj.nichols': true,
cabbiepete: true,
igorissen: true,
strathausen: true,
netroy: true,
cybo42: true,
paazmaya: true,
tigefa: true,
spekkionu: true,
qubyte: true,
samuelrn: true,
claveren: true,
karudo: true,
csk83: true,
aminrx: true,
leodutra: true,
frankdilo: true,
wayneseymour: true,
forbeslindesay: true,
pana: true,
lych: true,
ericlondon: true,
redbe4rd: true,
roryrjb: true,
bausmeier: true,
nak2k: true,
hibrahimsafak: true,
davidbaiguini: true,
chaowi: true,
mananvaghasiya: true,
nathanwang: true,
oroce: true,
erikpmp: true,
hitecdev: true,
agaskill: true,
thitinun: true,
ataiemajid_63: true,
mutian: true,
tonchmx: true,
dercoder: true,
azmfaridee: true,
mustansirmr: true,
adamlu: true,
olamedia: true,
dennisgnl: true,
thebearingedge: true,
janez89: true,
stonecypher: true,
ztooner: true,
thisjustin: true,
ekstergans: true,
tylervortexbr: true,
deadcoder: true,
quintonparker: true,
kewin: true,
sergiodxa: true,
piotr23: true,
woverton: true,
zhangyaochun: true,
victorzimmer: true,
jprempeh: true,
coachshea: true,
silentcloud: true,
cloud1991: true,
ivangaravito: true,
feryardiant: true,
swak: true,
shahzaib: true,
clintonc: true,
xiaokai: true,
kasperstuck: true,
billfeller: true,
satoyami: true,
nightly: true,
nickl: true,
f124275809: true,
frknbasaran: true,
adamk: true,
amd940: true,
clunt: true,
fraunhofer: true,
esperluette: true,
haeck: true,
damocles: true,
hema: true,
tonyw: true,
'theodor.lindekaer': true,
gregjopa: true,
vchouhan: true,
fishnobone: true,
elosoman: true,
manxisuo: true,
broxmgs: true,
vncnttejas: true,
noldotar: true,
'phoenix-xsy': true,
michaelchance: true,
leonning: true,
sc7639: true,
aconrado: true,
junjiansyu: true,
chengsu: true,
blind__man: true,
mmachine: true,
sessionbean: true,
marcghorayeb: true,
chenzww: true,
erincinci: true,
cliff: true,
franciscan: true,
iamwiz: true,
rahul_thakur: true,
gabrielsanterre: true,
chrisjordanme: true,
buzuli: true,
nukisman: true,
sfabriece: true,
brandouellette: true,
iahmadzain: true,
chaseshu: true,
maskedcoder: true,
ernie55ernie: true,
lionft: true,
guananddu: true,
benburwell: true,
ajduke: true,
samhou1988: true,
donvercety: true,
meshal: true,
luhuan: true,
karlbateman: true,
liveinjs: true,
mizanur: true,
i3ernie: true,
'2dxgujun': true,
emerido: true,
svgkrishnamurthy: true,
marshallswain: true,
koulmomo: true,
dcriori: true,
jovenbarola: true,
'acollins-ts': true,
qlqllu: true,
vbv: true,
shacoxss: true,
crowelch: true,
nketchum: true,
ssh0702: true,
jalcine: true,
arulkumar: true,
wangnan0610: true,
octetstream: true,
'temoto-kun': true,
bluerival: true,
chrisbrocklesby: true,
nonemoticoner: true,
componentfactory: true,
enuobear: true,
jkrenge: true,
dbck: true,
nickeltobias: true,
sonhuytran: true,
alectic: true,
naohta: true,
vonivgol: true,
bobjohnson23: true,
xngiser: true,
'skl.2015': true,
japh: true,
silva23: true,
pandao: true,
arduousbonze: true,
wisecolt: true,
antanst: true,
figroc: true,
'stroem!': true,
ninozhang: true,
hallaji: true,
mdrobny: true,
kleintobe: true,
'jaehong.lee': true,
'thomas.miele': true,
evilnemesis: true,
tstringer: true,
chenpusn: true,
romainisnel: true,
shinax: true,
iroc: true,
kobleistvan: true,
itonyyo: true,
michaeldegroot: true,
brandonccx: true,
novalu: true,
monjer: true,
virtrel: true,
evan2x: true,
traveltechymatt: true,
jonnyirving: true,
tobiasnickel: true,
wenbing: true,
fang0408: true,
p4r4n0id: true,
robnov: true,
marlongrape: true,
crashedbboy: true,
itskdk: true },
readmeFilename: 'Readme.md',
homepage: 'https://github.com/felixge/node-mysql',
bugs: { url: 'https://github.com/felixge/node-mysql/issues' },
contributors:
[ 'Andrey Sidorov ',
'Douglas Christopher Wilson ',
'Diogo Resende ' ],
license: 'MIT',
version: '2.10.0',
dependencies: { 'bignumber.js': '2.1.2', 'readable-stream': '~1.1.13' },
devDependencies:
{ eslint: '1.10.1',
istanbul: '0.4.1',
'require-all': '2.0.0',
rimraf: '2.2.8',
'timezone-mock': '0.0.0',
mkdirp: '0.5.1',
urun: '0.0.8',
utest: '0.0.8' },
files: [ 'lib/', 'Changes.md', 'License', 'Readme.md', 'index.js' ],
engines: { node: '>= 0.6' },
scripts:
{ lint: 'eslint lib/**/*.js index.js test/**/*.js',
test: 'node test/run.js',
'test-ci': 'node test/run-cov.js lcovonly',
'test-cov': 'node test/run-cov.js' },
gitHead: 'edf320c890cd10b9f0a362fb99b94ab470d8e86c',
dist:
{ shasum: 'c5e36face47d592bc51f13345ec6141a7ca7726f',
tarball: 'http://registry.npmjs.org/mysql/-/mysql-2.10.0.tgz' },
directories: {} }
上面这是列出了所有包的信息。如果想查看指定版本的包的信息,可以以“package-name@version”的形式获取。
示例: