Check if a path is in the current working directory
MIT License
Check if a path is in the current working directory
$ npm install is-path-in-cwd
import isPathInCwd from 'is-path-in-cwd';
isPathInCwd('unicorn');
//=> true
isPathInCwd('../rainbow');
//=> false
isPathInCwd('.');
//=> false