nx/packages/angular/src/generators/utils/get-new-project-name.ts

9 lines
153 B
TypeScript

/**
* Replaces slashes with dashes
*
* @param path
*/
export function getNewProjectName(path: string): string {
return path.replace(/\//g, '-');
}