vlad 6f123ff03e 18.07 6 years ago
..
index.js 6f123ff03e 18.07 6 years ago
license 6f123ff03e 18.07 6 years ago
package.json 6f123ff03e 18.07 6 years ago
readme.md 6f123ff03e 18.07 6 years ago

readme.md

is-path-in-cwd Build Status

Check if a path is in the current working directory

Install

$ npm install --save is-path-in-cwd

Usage

var isPathInCwd = require('is-path-in-cwd');

isPathInCwd('unicorn');
//=> true

isPathInCwd('../rainbow');
//=> false

isPathInCwd('.');
//=> false

License

MIT © Sindre Sorhus