[READ-ONLY] a fast, modern browser for the npm registry
at main 11 lines 442 B view raw
1/** 2 * Constructs a scope:team string in the format expected by npm. 3 * npm operations require the format @scope:team (with @ prefix). 4 * 5 * @param orgName - The organization name (with or without @) 6 * @param teamName - The team name 7 * @returns The scope:team string in @scope:team format 8 */ 9export function buildScopeTeam(orgName: string, teamName: string): `@${string}:${string}` { 10 return `@${orgName.replace(/^@/, '')}:${teamName}` 11}