Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
495 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | # is-path-cwd [![Build Status](https://travis-ci.org/sindresorhus/is-path-cwd.svg?branch=master)](https://travis-ci.org/sindresorhus/is-path-cwd)
|
---|
| 2 |
|
---|
| 3 | > Check if a path is the [current working directory](https://en.wikipedia.org/wiki/Working_directory)
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | ## Install
|
---|
| 7 |
|
---|
| 8 | ```
|
---|
| 9 | $ npm install is-path-cwd
|
---|
| 10 | ```
|
---|
| 11 |
|
---|
| 12 |
|
---|
| 13 | ## Usage
|
---|
| 14 |
|
---|
| 15 | ```js
|
---|
| 16 | const isPathCwd = require('is-path-cwd');
|
---|
| 17 |
|
---|
| 18 | isPathCwd(process.cwd());
|
---|
| 19 | //=> true
|
---|
| 20 |
|
---|
| 21 | isPathCwd('unicorn');
|
---|
| 22 | //=> false
|
---|
| 23 | ```
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | ## License
|
---|
| 27 |
|
---|
| 28 | MIT © [Sindre Sorhus](https://sindresorhus.com)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.