Skip to content

Commit b65feeb

Browse files
committed
Update readme
1 parent 5466550 commit b65feeb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

readme.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,23 @@
33

44
> Node.js module. Checks for the presence of URL protocol without a slashes (colon-slash-slash)
55
6+
Version 2 requires Node.js >= 6.13.
67

78
## Install
89

9-
```
10-
$ npm i -S is-url-protocol-without-slashes
10+
```sh
11+
# NPM
12+
$ npm install is-url-protocol-without-slashes
13+
14+
# Yarn
15+
$ yarn add is-url-protocol-without-slashes
1116
```
1217

1318

1419
## Usage
1520

1621
```js
17-
var isUrlProtocolWithoutSlashes = require('is-url-protocol-without-slashes');
22+
const isUrlProtocolWithoutSlashes = require('is-url-protocol-without-slashes');
1823

1924
isUrlProtocolWithoutSlashes('mailto:info@mail.com');
2025
//=> true

0 commit comments

Comments
 (0)