tree: 8385c73c5ccfb8a0b225df6e61622644bc4ab861 [path history] [tgz]
  1. index.js
  2. license
  3. package.json
  4. readme.md
node_modules/is-path-in-cwd/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