lhl 6ff0e96ad3 8-4-1 | il y a 1 an | |
---|---|---|
.. | ||
node_modules | il y a 1 an | |
index.d.ts | il y a 1 an | |
index.js | il y a 1 an | |
license | il y a 1 an | |
package.json | il y a 1 an | |
readme.md | il y a 1 an |
Check if a path is in the current working directory
$ npm install is-path-in-cwd
const isPathInCwd = require('is-path-in-cwd');
isPathInCwd('unicorn');
//=> true
isPathInCwd('../rainbow');
//=> false
isPathInCwd('.');
//=> false
MIT © Sindre Sorhus