3 <title>npm-pack</title>
4 <meta http-equiv="content-type" value="text/html;utf-8">
5 <link rel="stylesheet" type="text/css" href="../../static/style.css">
9 <h1><a href="../cli/npm-pack.html">npm-pack</a></h1> <p>Create a tarball from a package</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code>npm pack [<pkg> [<pkg> ...]]</code></pre>
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
17 <p>For anything that's installable (that is, a package folder, tarball,
18 tarball url, name@tag, name@version, or name), this command will fetch
19 it to the cache, and then copy the tarball to the current working
20 directory as <code><name>-<version>.tgz</code>, and then write the filenames out to
23 <p>If the same package is specified multiple times, then the file will be
24 overwritten the second time.</p>
26 <p>If no arguments are supplied, then npm packs the current package folder.</p>
28 <h2 id="SEE-ALSO">SEE ALSO</h2>
30 <ul><li><a href="../cli/npm-cache.html">npm-cache(1)</a></li><li><a href="../cli/npm-publish.html">npm-publish(1)</a></li><li><a href="../cli/npm-config.html">npm-config(1)</a></li><li><a href="../misc/npm-config.html">npm-config(7)</a></li><li><a href="../files/npmrc.html">npmrc(5)</a></li></ul>
32 <p id="footer">npm-pack — npm@1.3.17</p>
35 var wrapper = document.getElementById("wrapper")
36 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
37 .filter(function (el) {
38 return el.parentNode === wrapper
39 && el.tagName.match(/H[1-6]/)
43 , toc = document.createElement("ul")
44 toc.innerHTML = els.map(function (el) {
45 var i = el.tagName.charAt(1)
55 out += "<li><a href='#" + el.id + "'>" +
56 ( el.innerText || el.text || el.innerHTML)
61 document.body.appendChild(toc)