is-path-cwd (2.2.0)
Published 2026-02-24 13:58:32 +00:00 by atheaadmin
Installation
registry=npm install is-path-cwd@2.2.0"is-path-cwd": "2.2.0"About this package
is-path-cwd 
Check if a path is the current working directory
Install
$ npm install is-path-cwd
Usage
const isPathCwd = require('is-path-cwd');
isPathCwd(process.cwd());
//=> true
isPathCwd('unicorn');
//=> false
License
MIT © Sindre Sorhus
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| ava | ^1.4.1 |
| tsd | ^0.7.2 |
| xo | ^0.24.0 |
Keywords
path
cwd
pwd
check
filepath
file
folder