Files
freeCodeCamp/tools/challenge-helper-scripts/helpers/get-project-info.ts
Sem Bauke d92eb803da fix(tests): windows pathing (#45799)
* fix: tests on Windows

* fix: use path join instead
2022-04-28 22:04:16 +01:00

8 lines
201 B
TypeScript

export function getProjectPath(): string {
return (process.env.CALLING_DIR || process.cwd()) + '/';
}
export function getProjectName(): string {
return getProjectPath().split('/').slice(-2)[0];
}