mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 16:35:14 +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;
|