1
0
mirror of https://github.com/SomboChea/ui synced 2024-09-29 12:57:52 +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;