|
|
8 years ago | |
|---|---|---|
| .. | ||
| index.js | 8 years ago | |
| package.json | 8 years ago | |
| readme.md | 8 years ago | |
Check if a path is in the current working directory
$ npm install --save is-path-in-cwd
var isPathInCwd = require('is-path-in-cwd');
isPathInCwd('unicorn');
//=> true
isPathInCwd('../rainbow');
//=> false
MIT © Sindre Sorhus