mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
21 lines
357 B
TypeScript
21 lines
357 B
TypeScript
|
/**
|
||
|
Check if a path is in the [current working directory](https://en.wikipedia.org/wiki/Working_directory).
|
||
|
|
||
|
@example
|
||
|
```
|
||
|
import isPathInCwd = require('is-path-in-cwd');
|
||
|
|
||
|
isPathInCwd('unicorn');
|
||
|
//=> true
|
||
|
|
||
|
isPathInCwd('../rainbow');
|
||
|
//=> false
|
||
|
|
||
|
isPathInCwd('.');
|
||
|
//=> false
|
||
|
```
|
||
|
*/
|
||
|
declare function isPathInCwd(path: string): boolean;
|
||
|
|
||
|
export = isPathInCwd;
|