|
|
há 3 anos atrás | |
|---|---|---|
| .. | ||
| index.d.ts | há 3 anos atrás | |
| index.js | há 3 anos atrás | |
| license | há 3 anos atrás | |
| package.json | há 3 anos atrás | |
| readme.md | há 3 anos atrás | |
Check if a path is in the current working directory
$ npm install is-path-in-cwd
const isPathInCwd = require('is-path-in-cwd');
isPathInCwd('unicorn');
//=> true
isPathInCwd('../rainbow');
//=> false
isPathInCwd('.');
//=> false
MIT © Sindre Sorhus