Björn f184cd7e2a | 4 years ago | |
---|---|---|
.. | ||
index.d.ts | 4 years ago | |
index.js | 4 years ago | |
license | 4 years ago | |
package.json | 4 years ago | |
readme.md | 4 years ago |
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