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.
main_repo / deps / npm / html / doc / tag.html @ d46ebffb
History | View | Annotate | Download (1.48 KB)
1 |
<!doctype html>
|
---|---|
2 |
<html>
|
3 |
<title>tag</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/tag.html">tag</a></h1> <p>Tag a published version</p> |
10 |
|
11 |
<h2 id="SYNOPSIS">SYNOPSIS</h2> |
12 |
|
13 |
<pre><code>npm tag <name>@<version> [<tag>]</code></pre> |
14 |
|
15 |
<h2 id="DESCRIPTION">DESCRIPTION</h2> |
16 |
|
17 |
<p>Tags the specified version of the package with the specified tag, or the
|
18 |
<code>--tag</code> config if not specified.</p> |
19 |
|
20 |
<h2 id="SEE-ALSO">SEE ALSO</h2> |
21 |
|
22 |
<ul><li><a href="../doc/publish.html">publish(1)</a></li><li><a href="../doc/registry.html">registry(1)</a></li><li><a href="../doc/config.html">config(1)</a></li></ul> |
23 |
</div>
|
24 |
<p id="footer">tag — npm@1.2.17</p> |
25 |
<script>
|
26 |
;(function () {
|
27 |
var wrapper = document.getElementById("wrapper")
|
28 |
var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
|
29 |
.filter(function (el) {
|
30 |
return el.parentNode === wrapper
|
31 |
&& el.tagName.match(/H[1-6]/)
|
32 |
&& el.id
|
33 |
})
|
34 |
var l = 2
|
35 |
, toc = document.createElement("ul")
|
36 |
toc.innerHTML = els.map(function (el) {
|
37 |
var i = el.tagName.charAt(1)
|
38 |
, out = ""
|
39 |
while (i > l) {
|
40 |
out += "<ul>"
|
41 |
l ++
|
42 |
}
|
43 |
while (i < l) {
|
44 |
out += "</ul>"
|
45 |
l --
|
46 |
}
|
47 |
out += "<li><a href='#" + el.id + "'>" +
|
48 |
( el.innerText || el.text || el.innerHTML)
|
49 |
+ "</a>"
|
50 |
return out
|
51 |
}).join("\n")
|
52 |
toc.id = "toc"
|
53 |
document.body.appendChild(toc)
|
54 |
})()
|
55 |
</script>
|
56 |
</body></html> |