is-path-in-cwd
Check if a path is in the current working directory
Install
$ npm install is-path-in-cwdUsage
const isPathInCwd = require('is-path-in-cwd');
isPathInCwd('unicorn');
//=> true
isPathInCwd('../rainbow');
//=> false
isPathInCwd('.');
//=> falseLicense
MIT © Sindre Sorhus
Last updated
Was this helpful?