DigitalConsumer.FixMyGlass/node_modules/is-path-in-cwd
2021-09-20 18:29:11 -04:00
..
index.d.ts my commit 2021-09-20 18:29:11 -04:00
index.js my commit 2021-09-20 18:29:11 -04:00
license my commit 2021-09-20 18:29:11 -04:00
package.json my commit 2021-09-20 18:29:11 -04:00
readme.md my commit 2021-09-20 18:29:11 -04:00

is-path-in-cwd Build Status

Check if a path is in the current working directory

Install

$ npm install is-path-in-cwd

Usage

const isPathInCwd = require('is-path-in-cwd');

isPathInCwd('unicorn');
//=> true

isPathInCwd('../rainbow');
//=> false

isPathInCwd('.');
//=> false

License

MIT © Sindre Sorhus