The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / deps / npm / html / doc / deprecate.html @ 5aef65a9

History | View | Annotate | Download (1.95 KB)

1
<!doctype html>
2
<html>
3
  <title>deprecate</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="../doc/deprecate.html">deprecate</a></h1> <p>Deprecate a version of a package</p>
10

    
11
<h2 id="SYNOPSIS">SYNOPSIS</h2>
12

    
13
<pre><code>npm deprecate &lt;name&gt;[@&lt;version&gt;] &lt;message&gt;</code></pre>
14

    
15
<h2 id="DESCRIPTION">DESCRIPTION</h2>
16

    
17
<p>This command will update the npm registry entry for a package, providing
18
a deprecation warning to all who attempt to install it.</p>
19

    
20
<p>It works on version ranges as well as specific versions, so you can do
21
something like this:</p>
22

    
23
<pre><code>npm deprecate my-thing@&quot;&lt; 0.2.3&quot; &quot;critical bug fixed in v0.2.3&quot;</code></pre>
24

    
25
<p>Note that you must be the package owner to deprecate something.  See the
26
<code>owner</code> and <code>adduser</code> help topics.</p>
27

    
28
<p>To un-deprecate a package, specify an empty string (<code>&quot;&quot;</code>) for the <code>message</code> argument.</p>
29

    
30
<h2 id="SEE-ALSO">SEE ALSO</h2>
31

    
32
<ul><li><a href="../doc/publish.html">publish(1)</a></li><li><a href="../doc/registry.html">registry(1)</a></li></ul>
33
</div>
34
<p id="footer">deprecate &mdash; npm@1.2.10</p>
35
<script>
36
;(function () {
37
var wrapper = document.getElementById("wrapper")
38
var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
39
  .filter(function (el) {
40
    return el.parentNode === wrapper
41
        && el.tagName.match(/H[1-6]/)
42
        && el.id
43
  })
44
var l = 2
45
  , toc = document.createElement("ul")
46
toc.innerHTML = els.map(function (el) {
47
  var i = el.tagName.charAt(1)
48
    , out = ""
49
  while (i > l) {
50
    out += "<ul>"
51
    l ++
52
  }
53
  while (i < l) {
54
    out += "</ul>"
55
    l --
56
  }
57
  out += "<li><a href='#" + el.id + "'>" +
58
    ( el.innerText || el.text || el.innerHTML)
59
    + "</a>"
60
  return out
61
}).join("\n")
62
toc.id = "toc"
63
document.body.appendChild(toc)
64
})()
65
</script>
66
</body></html>