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