source: trip-planner-front/node_modules/is-path-in-cwd/index.d.ts@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 357 bytes
Line 
1/**
2Check if a path is in the [current working directory](https://en.wikipedia.org/wiki/Working_directory).
3
4@example
5```
6import isPathInCwd = require('is-path-in-cwd');
7
8isPathInCwd('unicorn');
9//=> true
10
11isPathInCwd('../rainbow');
12//=> false
13
14isPathInCwd('.');
15//=> false
16```
17*/
18declare function isPathInCwd(path: string): boolean;
19
20export = isPathInCwd;
Note: See TracBrowser for help on using the repository browser.