LAPTOP-UBJMM5MG\user d7428fd373 更新 1 year ago
..
index.d.ts d7428fd373 更新 1 year ago
index.js d7428fd373 更新 1 year ago
license d7428fd373 更新 1 year ago
package.json d7428fd373 更新 1 year ago
readme.md d7428fd373 更新 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