node/tools/eslint/node_modules/is-path-in-cwd
Rich Trott 2da2625ad1 tools: update ESLint to 3.5.0
PR-URL: https://github.com/nodejs/node/pull/8478
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-09-12 21:11:55 -07:00
..
index.js tools: update eslint to v1.10.3 2016-01-13 23:15:39 +01:00
package.json tools: update ESLint to 3.5.0 2016-09-12 21:11:55 -07:00
readme.md tools: update eslint to v1.10.3 2016-01-13 23:15:39 +01:00

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

License

MIT © Sindre Sorhus