$ npm install is-path-cwd
Check if a path is the current working directory
$ npm install is-path-cwd
import isPathCwd from 'is-path-cwd';
isPathCwd(process.cwd());
//=> true
isPathCwd('unicorn');
//=> false
© 2010 - cnpmjs.org x YWFE | Home | YWFE