wuxiang da9bc82d52 commit 2 年之前
..
index.d.ts da9bc82d52 commit 2 年之前
index.js da9bc82d52 commit 2 年之前
license da9bc82d52 commit 2 年之前
package.json da9bc82d52 commit 2 年之前
readme.md da9bc82d52 commit 2 年之前

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