npm: Upgrade to 1.3.19
[platform/upstream/nodejs.git] / deps / npm / html / doc / cli / npm-init.html
1 <!doctype html>
2 <html>
3   <title>npm-init</title>
4   <meta http-equiv="content-type" value="text/html;utf-8">
5   <link rel="stylesheet" type="text/css" href="../../static/style.css">
6
7   <body>
8     <div id="wrapper">
9 <h1><a href="../cli/npm-init.html">npm-init</a></h1> <p>Interactively create a package.json file</p>
10
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
12
13 <pre><code>npm init</code></pre>
14
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
16
17 <p>This will ask you a bunch of questions, and then write a package.json for you.</p>
18
19 <p>It attempts to make reasonable guesses about what you want things to be set to,
20 and then writes a package.json file with the options you&#39;ve selected.</p>
21
22 <p>If you already have a package.json file, it&#39;ll read that first, and default to
23 the options in there.</p>
24
25 <p>It is strictly additive, so it does not delete options from your package.json
26 without a really good reason to do so.</p>
27
28 <h2 id="SEE-ALSO">SEE ALSO</h2>
29
30 <ul><li><a href="https://github.com/isaacs/init-package-json">https://github.com/isaacs/init-package-json</a></li><li><a href="../files/package.json.html">package.json(5)</a></li><li><a href="../cli/npm-version.html">npm-version(1)</a></li></ul>
31 </div>
32 <p id="footer">npm-init &mdash; npm@1.3.19</p>
33 <script>
34 ;(function () {
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]/)
40         && el.id
41   })
42 var l = 2
43   , toc = document.createElement("ul")
44 toc.innerHTML = els.map(function (el) {
45   var i = el.tagName.charAt(1)
46     , out = ""
47   while (i > l) {
48     out += "<ul>"
49     l ++
50   }
51   while (i < l) {
52     out += "</ul>"
53     l --
54   }
55   out += "<li><a href='#" + el.id + "'>" +
56     ( el.innerText || el.text || el.innerHTML)
57     + "</a>"
58   return out
59 }).join("\n")
60 toc.id = "toc"
61 document.body.appendChild(toc)
62 })()
63 </script>