node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

is-path-in-cwd

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