aswi2020vldc-gitlab/templetes/node_modules/is-path-cwd/index.d.ts @ 10920ea3
1 |
/**
|
---|---|
2 |
Check if a path is the [current working directory](https://en.wikipedia.org/wiki/Working_directory).
|
3 | |
4 |
@example
|
5 |
```
|
6 |
import isPathCwd = require('is-path-cwd');
|
7 | |
8 |
isPathCwd(process.cwd());
|
9 |
//=> true
|
10 | |
11 |
isPathCwd('unicorn');
|
12 |
//=> false
|
13 |
```
|
14 |
*/
|
15 |
declare function isPathCwd(path: string): boolean; |
16 | |
17 |
export = isPathCwd; |