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