Projekt

Obecné

Profil

Stáhnout (548 Bajtů) Statistiky
| Větev: | Revize:
1 3a515b92 cagy
# is-path-in-cwd [![Build Status](https://travis-ci.org/sindresorhus/is-path-in-cwd.svg?branch=master)](https://travis-ci.org/sindresorhus/is-path-in-cwd)
2
3
> Check if a path is in the [current working directory](https://en.wikipedia.org/wiki/Working_directory)
4
5
6
## Install
7
8
```
9
$ npm install is-path-in-cwd
10
```
11
12
13
## Usage
14
15
```js
16
const isPathInCwd = require('is-path-in-cwd');
17
18
isPathInCwd('unicorn');
19
//=> true
20
21
isPathInCwd('../rainbow');
22
//=> false
23
24
isPathInCwd('.');
25
//=> false
26
```
27
28
29
## License
30
31
MIT © [Sindre Sorhus](https://sindresorhus.com)