wishthis/node_modules/is-path-cwd/readme.md

29 lines
495 B
Markdown
Raw Normal View History

2022-01-21 08:28:41 +00:00
# is-path-cwd [![Build Status](https://travis-ci.org/sindresorhus/is-path-cwd.svg?branch=master)](https://travis-ci.org/sindresorhus/is-path-cwd)
2023-08-17 09:47:40 +00:00
> Check if a path is the [current working directory](https://en.wikipedia.org/wiki/Working_directory)
2022-01-21 08:28:41 +00:00
## Install
2023-08-17 09:47:40 +00:00
```
$ npm install is-path-cwd
2022-01-21 08:28:41 +00:00
```
## Usage
```js
2023-08-17 09:47:40 +00:00
const isPathCwd = require('is-path-cwd');
2022-01-21 08:28:41 +00:00
isPathCwd(process.cwd());
//=> true
isPathCwd('unicorn');
//=> false
```
## License
2023-08-17 09:47:40 +00:00
MIT © [Sindre Sorhus](https://sindresorhus.com)