MCPcopy
hub / github.com/npmx-dev/npmx.dev / ownerAdd

Function ownerAdd

cli/src/npm-client.ts:509–517  ·  view source on GitHub ↗
(
  user: string,
  pkg: string,
  options?: ExecNpmOptions,
)

Source from the content-addressed store, hash-verified

507}
508
509export async function ownerAdd(
510 user: string,
511 pkg: string,
512 options?: ExecNpmOptions,
513): Promise<NpmExecResult> {
514 validateUsername(user)
515 validatePackageName(pkg)
516 return execNpm(['owner', 'add', user, pkg], options)
517}
518
519export async function ownerRemove(
520 user: string,

Callers 1

executeOperationFunction · 0.90

Calls 3

validateUsernameFunction · 0.85
validatePackageNameFunction · 0.85
execNpmFunction · 0.85

Tested by

no test coverage detected