XuelesszzZ 94af2b8e7b 6-30-5 1 year ago
..
index.d.ts 94af2b8e7b 6-30-5 1 year ago
index.js 94af2b8e7b 6-30-5 1 year ago
license 94af2b8e7b 6-30-5 1 year ago
package.json 94af2b8e7b 6-30-5 1 year ago
readme.md 94af2b8e7b 6-30-5 1 year ago

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