1 | # is-url-superb [![Build Status](https://travis-ci.org/sindresorhus/is-url-superb.svg?branch=master)](https://travis-ci.org/sindresorhus/is-url-superb)
|
2 |
|
3 | > Check if a string is a URL
|
4 |
|
5 | Created because the [`is-url`](https://github.com/segmentio/is-url) module is too loose. This module depends on a much more comprehensive [regex](https://github.com/kevva/url-regex).
|
6 |
|
7 |
|
8 | ## Install
|
9 |
|
10 | ```
|
11 | $ npm install is-url-superb
|
12 | ```
|
13 |
|
14 |
|
15 | ## Usage
|
16 |
|
17 | ```js
|
18 | const isUrl = require('is-url-superb');
|
19 |
|
20 | isUrl('https://sindresorhus.com');
|
21 | //=> true
|
22 |
|
23 | isUrl('//sindresorhus.com');
|
24 | //=> true
|
25 |
|
26 | isUrl('unicorn');
|
27 | //=> false
|
28 | ```
|
29 |
|
30 |
|
31 | ## License
|
32 |
|
33 | MIT © [Sindre Sorhus](https://sindresorhus.com)
|