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 / api / owner.html @ d46ebffb

History | View | Annotate | Download (2.13 KB)

1
<!doctype html>
2
<html>
3
  <title>owner</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="../api/owner.html">owner</a></h1> <p>Manage package owners</p>
10

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

    
13
<pre><code>npm.commands.owner(args, callback)</code></pre>
14

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

    
17
<p>The first element of the &#39;args&#39; parameter defines what to do, and the subsequent
18
elements depend on the action. Possible values for the action are (order of
19
parameters are given in parenthesis):</p>
20

    
21
<ul><li>ls (package):
22
List all the users who have access to modify a package and push new versions.
23
Handy when you need to know who to bug for help.</li><li>add (user, package):
24
Add a new user as a maintainer of a package.  This user is enabled to modify
25
metadata, publish new versions, and add other owners.</li><li>rm (user, package):
26
Remove a user from the package owner list.  This immediately revokes their
27
privileges.</li></ul>
28

    
29
<p>Note that there is only one level of access.  Either you can modify a package,
30
or you can&#39;t.  Future versions may contain more fine-grained access levels, but
31
that is not implemented at this time.</p>
32

    
33
<h2 id="SEE-ALSO">SEE ALSO</h2>
34

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