Last updated 3 years ago
Was this helpful?
Check if a path is in the
MIT ©
$ npm install is-path-in-cwd
const isPathInCwd = require('is-path-in-cwd'); isPathInCwd('unicorn'); //=> true isPathInCwd('../rainbow'); //=> false isPathInCwd('.'); //=> false