lihai 8d6c751f49 feat: push il y a 2 ans
..
index.d.ts 8d6c751f49 feat: push il y a 2 ans
index.js 8d6c751f49 feat: push il y a 2 ans
license 8d6c751f49 feat: push il y a 2 ans
package.json 8d6c751f49 feat: push il y a 2 ans
readme.md 8d6c751f49 feat: push il y a 2 ans

readme.md

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