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
Name |
Last Commit
ff54295b
–
reinstall react
|
History
|
Last Update |
---|---|---|
.. | ||
index.d.ts | Loading commit data... | |
index.js | Loading commit data... | |
license | Loading commit data... | |
package.json | Loading commit data... | |
readme.md | Loading commit data... |
Check if a path is the current working directory
$ npm install is-path-cwd
const isPathCwd = require('is-path-cwd');
isPathCwd(process.cwd());
//=> true
isPathCwd('unicorn');
//=> false
MIT © Sindre Sorhus