mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-11 05:11:40 +00:00
update
This commit is contained in:
31
node_modules/is-path-in-cwd/readme.md
generated
vendored
Normal file
31
node_modules/is-path-in-cwd/readme.md
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
# 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
|
||||
|
||||
isPathInCwd('.');
|
||||
//=> false
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
Reference in New Issue
Block a user