UNPKG

733 BMarkdownView Raw
1# is-path-cwd
2
3> Check if a path is the [current working directory](https://en.wikipedia.org/wiki/Working_directory)
4
5## Install
6
7```
8$ npm install is-path-cwd
9```
10
11## Usage
12
13```js
14import isPathCwd from 'is-path-cwd';
15
16isPathCwd(process.cwd());
17//=> true
18
19isPathCwd('unicorn');
20//=> false
21```
22
23---
24
25<div align="center">
26 <b>
27 <a href="https://tidelift.com/subscription/pkg/npm-is-path-cwd?utm_source=npm-is-path-cwd&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
28 </b>
29 <br>
30 <sub>
31 Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
32 </sub>
33</div>