$ gnpm 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
Copyright 2013 - present © cnpmjs.org | Home |