mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
8 lines
201 B
TypeScript
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];
|
|
}
|