4.0.0 • Published 3 years ago
is-path-in-cwd v4.0.0
is-path-in-cwd
Check if a path is in the current working directory
Install
$ npm install is-path-in-cwd
Usage
import isPathInCwd from 'is-path-in-cwd';
isPathInCwd('unicorn');
//=> true
isPathInCwd('../rainbow');
//=> false
isPathInCwd('.');
//=> false