index.d.ts 357 B

1234567891011121314151617181920
  1. /**
  2. Check if a path is in the [current working directory](https://en.wikipedia.org/wiki/Working_directory).
  3. @example
  4. ```
  5. import isPathInCwd = require('is-path-in-cwd');
  6. isPathInCwd('unicorn');
  7. //=> true
  8. isPathInCwd('../rainbow');
  9. //=> false
  10. isPathInCwd('.');
  11. //=> false
  12. ```
  13. */
  14. declare function isPathInCwd(path: string): boolean;
  15. export = isPathInCwd;