2015-02-06 17:14:25 +08:00
|
|
|
.TH "NPM\-PACK" "3" "February 2015" "" ""
|
2011-11-27 01:21:03 +08:00
|
|
|
.SH "NAME"
|
2014-09-25 05:41:07 +08:00
|
|
|
\fBnpm-pack\fR \- Create a tarball from a package
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-05 07:08:12 +08:00
|
|
|
.nf
|
2011-11-27 01:21:03 +08:00
|
|
|
npm\.commands\.pack([packages,] callback)
|
2014-11-05 07:08:12 +08:00
|
|
|
.fi
|
2014-09-25 05:41:07 +08:00
|
|
|
.RE
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.P
|
|
|
|
For anything that's installable (that is, a package folder, tarball,
|
2011-11-27 01:21:03 +08:00
|
|
|
tarball url, name@tag, name@version, or name), this command will fetch
|
|
|
|
it to the cache, and then copy the tarball to the current working
|
|
|
|
directory as \fB<name>\-<version>\.tgz\fR, and then write the filenames out to
|
|
|
|
stdout\.
|
|
|
|
.P
|
|
|
|
If the same package is specified multiple times, then the file will be
|
|
|
|
overwritten the second time\.
|
|
|
|
.P
|
|
|
|
If no arguments are supplied, then npm packs the current package folder\.
|
2014-09-25 05:41:07 +08:00
|
|
|
|