Projekt

Obecné

Profil

Stáhnout (427 Bajtů) Statistiky
| Větev: | Revize:
1 3a515b92 cagy
/**
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;