aswi2020vldc-gitlab/templetes/node_modules/is-path-inside/index.d.ts @ 14917d37
1 |
/**
|
---|---|
2 |
Check if a path is inside another path.
|
3 |
|
4 |
@example
|
5 |
```
|
6 |
import isPathInside = require('is-path-inside');
|
7 |
|
8 |
isPathInside('a/b/c', 'a/b');
|
9 |
//=> true
|
10 |
|
11 |
isPathInside('a/b/c', 'x/y');
|
12 |
//=> false
|
13 |
|
14 |
isPathInside('a/b/c', 'a/b/c');
|
15 |
//=> false
|
16 |
|
17 |
isPathInside('/Users/sindresorhus/dev/unicorn', '/Users/sindresorhus');
|
18 |
//=> true
|
19 |
```
|
20 |
*/
|
21 |
declare function isPathInside(childPath: string, parentPath: string): boolean; |
22 |
|
23 |
export = isPathInside; |