is-path-cwd
Version:
Check if a path is the current working directory
16 lines (12 loc) • 292 B
TypeScript
/**
Check if a path is the [current working directory](https://en.wikipedia.org/wiki/Working_directory).
@example
```
import isPathCwd from 'is-path-cwd';
isPathCwd(process.cwd());
//=> true
isPathCwd('unicorn');
//=> false
```
*/
export default function isPathCwd(path: string): boolean;