wishthis/node_modules/is-path-in-cwd
2022-02-23 17:41:13 +01:00
..
index.js Add production dependencies 2022-01-21 09:28:41 +01:00
license Add production dependencies 2022-01-21 09:28:41 +01:00
package.json Update dependencies 2022-02-23 17:41:13 +01:00
readme.md Add production dependencies 2022-01-21 09:28:41 +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

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

License

MIT © Sindre Sorhus