UNPKG

292 BTypeScriptView Raw
1/**
2Check if a path is the [current working directory](https://en.wikipedia.org/wiki/Working_directory).
3
4@example
5```
6import isPathCwd from 'is-path-cwd';
7
8isPathCwd(process.cwd());
9//=> true
10
11isPathCwd('unicorn');
12//=> false
13```
14*/
15export default function isPathCwd(path: string): boolean;