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

Function validateOrgName

cli/src/npm-client.ts:55–60  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

53 * @internal
54 */
55export function validateOrgName(name: string): void {
56 const result = v.safeParse(OrgNameSchema, name)
57 if (!result.success) {
58 throw new Error(`Invalid org name: ${name}`)
59 }
60}
61
62/**
63 * Validates a scope:team format (e.g., @myorg:developers)

Callers 5

npm-client.spec.tsFile · 0.90
orgAddUserFunction · 0.70
orgRemoveUserFunction · 0.70
orgListUsersFunction · 0.70
teamListTeamsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected