You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
312 B

4 years ago
  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;