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

Function accessGrant

cli/src/npm-client.ts:488–497  ·  view source on GitHub ↗
(
  permission: 'read-only' | 'read-write',
  scopeTeam: string,
  pkg: string,
  options?: ExecNpmOptions,
)

Source from the content-addressed store, hash-verified

486}
487
488export async function accessGrant(
489 permission: 'read-only' | 'read-write',
490 scopeTeam: string,
491 pkg: string,
492 options?: ExecNpmOptions,
493): Promise<NpmExecResult> {
494 validateScopeTeam(scopeTeam)
495 validatePackageName(pkg)
496 return execNpm(['access', 'grant', permission, scopeTeam, pkg], options)
497}
498
499export async function accessRevoke(
500 scopeTeam: string,

Callers 1

executeOperationFunction · 0.90

Calls 3

validateScopeTeamFunction · 0.85
validatePackageNameFunction · 0.85
execNpmFunction · 0.85

Tested by

no test coverage detected