Last change
on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
357 bytes
|
Line | |
---|
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;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.