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.

28 lines
495 B

4 years ago
  1. # is-path-cwd [![Build Status](https://travis-ci.org/sindresorhus/is-path-cwd.svg?branch=master)](https://travis-ci.org/sindresorhus/is-path-cwd)
  2. > Check if a path is the [current working directory](https://en.wikipedia.org/wiki/Working_directory)
  3. ## Install
  4. ```
  5. $ npm install is-path-cwd
  6. ```
  7. ## Usage
  8. ```js
  9. const isPathCwd = require('is-path-cwd');
  10. isPathCwd(process.cwd());
  11. //=> true
  12. isPathCwd('unicorn');
  13. //=> false
  14. ```
  15. ## License
  16. MIT © [Sindre Sorhus](https://sindresorhus.com)