node/tools/eslint/node_modules/is-path-in-cwd
Rich Trott e313c0286b tools: update to ESLint 3.2.2
PR-URL: https://github.com/nodejs/node/pull/7999
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
2016-08-09 21:19:02 -07:00
..
index.js tools: update eslint to v1.10.3 2016-01-13 23:15:39 +01:00
package.json tools: update to ESLint 3.2.2 2016-08-09 21:19:02 -07:00
readme.md tools: update eslint to v1.10.3 2016-01-13 23:15:39 +01:00

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

License

MIT © Sindre Sorhus