Blame view
node_modules/is-path-in-cwd/readme.md
523 Bytes
f7563de62
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# is-path-in-cwd [](https://travis-ci.org/sindresorhus/is-path-in-cwd) > Check if a path is in the [current working directory](http://en.wikipedia.org/wiki/Working_directory) ## Install ```sh $ npm install --save is-path-in-cwd ``` ## Usage ```js var isPathInCwd = require('is-path-in-cwd'); isPathInCwd('unicorn'); //=> true isPathInCwd('../rainbow'); //=> false ``` ## License MIT © [Sindre Sorhus](http://sindresorhus.com) |