X7ROOT File Manager
Current Path:
/opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/lib
opt
/
alt
/
alt-nodejs6
/
root
/
usr
/
lib
/
node_modules
/
npm
/
lib
/
ðŸ“
..
📄
access.js
(3.23 KB)
📄
adduser.js
(3.98 KB)
📄
bin.js
(515 B)
📄
bugs.js
(857 B)
📄
build.js
(8.5 KB)
ðŸ“
cache
📄
cache.js
(10.17 KB)
📄
completion.js
(7.06 KB)
ðŸ“
config
📄
config.js
(8.27 KB)
📄
dedupe.js
(5.27 KB)
📄
deprecate.js
(1.4 KB)
📄
dist-tag.js
(3.67 KB)
📄
docs.js
(1.03 KB)
📄
edit.js
(985 B)
📄
explore.js
(1.63 KB)
📄
fetch-package-metadata.js
(11.5 KB)
📄
fetch-package-metadata.md
(1.76 KB)
📄
get.js
(235 B)
📄
help-search.js
(5.65 KB)
📄
help.js
(6.19 KB)
📄
init.js
(1.27 KB)
ðŸ“
install
📄
install-test.js
(507 B)
📄
install.js
(25.49 KB)
📄
link.js
(5.55 KB)
📄
logout.js
(1.1 KB)
📄
ls.js
(13.94 KB)
📄
npm.js
(11.23 KB)
📄
outdated.js
(12.1 KB)
📄
owner.js
(7.55 KB)
📄
pack.js
(1.79 KB)
📄
ping.js
(556 B)
📄
prefix.js
(330 B)
📄
prune.js
(1.5 KB)
📄
publish.js
(5.02 KB)
📄
rebuild.js
(2.11 KB)
📄
repo.js
(1.43 KB)
📄
restart.js
(64 B)
📄
root.js
(316 B)
📄
run-script.js
(5.16 KB)
📄
search.js
(7.76 KB)
📄
set.js
(276 B)
📄
shrinkwrap.js
(6.54 KB)
📄
star.js
(1.17 KB)
📄
stars.js
(1.1 KB)
📄
start.js
(62 B)
📄
stop.js
(61 B)
📄
substack.js
(509 B)
📄
tag.js
(1.08 KB)
📄
team.js
(1.41 KB)
📄
test.js
(294 B)
📄
unbuild.js
(3.97 KB)
📄
uninstall.js
(2.31 KB)
📄
unpublish.js
(3.55 KB)
📄
update.js
(1.76 KB)
ðŸ“
utils
📄
version.js
(7.71 KB)
📄
view.js
(9.12 KB)
📄
visnup.js
(4.01 KB)
📄
whoami.js
(1.42 KB)
📄
xmas.js
(1.57 KB)
Editing: team.js
var mapToRegistry = require('./utils/map-to-registry.js') var npm = require('./npm') var output = require('./utils/output.js') module.exports = team team.subcommands = ['create', 'destroy', 'add', 'rm', 'ls', 'edit'] team.usage = 'npm team create <scope:team>\n' + 'npm team destroy <scope:team>\n' + 'npm team add <scope:team> <user>\n' + 'npm team rm <scope:team> <user>\n' + 'npm team ls <scope>|<scope:team>\n' + 'npm team edit <scope:team>' team.completion = function (opts, cb) { var argv = opts.conf.argv.remain if (argv.length === 2) { return cb(null, team.subcommands) } switch (argv[2]) { case 'ls': case 'create': case 'destroy': case 'add': case 'rm': case 'edit': return cb(null, []) default: return cb(new Error(argv[2] + ' not recognized')) } } function team (args, cb) { // Entities are in the format <scope>:<team> var cmd = args.shift() var entity = (args.shift() || '').split(':') return mapToRegistry('/', npm.config, function (err, uri, auth) { if (err) { return cb(err) } try { return npm.registry.team(cmd, uri, { auth: auth, scope: entity[0], team: entity[1], user: args.shift() }, function (err, data) { !err && data && output(JSON.stringify(data, undefined, 2)) cb(err, data) }) } catch (e) { cb(e.message + '\n\nUsage:\n' + team.usage) } }) }
Upload File
Create Folder