MCPcopy Create free account
hub / github.com/npm/cli / rm

Method rm

lib/commands/team.js:110–123  ·  view source on GitHub ↗
(entity, user, opts)

Source from the content-addressed store, hash-verified

108 }
109
110 async rm (entity, user, opts) {
111 await libteam.rm(user, entity, opts)
112 if (opts.json) {
113 output.buffer({
114 removed: true,
115 team: entity,
116 user,
117 })
118 } else if (opts.parseable) {
119 output.standard(`${user}\t${entity}\tremoved`)
120 } else if (!this.npm.silent) {
121 output.standard(`${user} removed from @${entity}`)
122 }
123 }
124
125 async listUsers (entity, opts) {
126 const users = (await libteam.lsUsers(entity, opts)).sort()

Callers 1

execMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected