1
0
mirror of https://github.com/SomboChea/ui synced 2024-11-16 03:04:27 +07:00
verdaccio-ui/src/pages/Version/get-route-package-name.ts

10 lines
198 B
TypeScript
Raw Normal View History

function getRouterPackageName(packageName: string, scope?: string): string {
if (scope) {
return `@${scope}/${packageName}`;
}
return packageName;
}
export default getRouterPackageName;