index.d.ts 312 B

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