1 | /**
|
2 | Check if a string is a URL.
|
3 |
|
4 | @example
|
5 | ```
|
6 | import isUrl = require('is-url-superb');
|
7 |
|
8 | isUrl('https://sindresorhus.com');
|
9 | //=> true
|
10 |
|
11 | isUrl('//sindresorhus.com');
|
12 | //=> true
|
13 |
|
14 | isUrl('unicorn');
|
15 | //=> false
|
16 | ```
|
17 | */
|
18 | declare function isUrl(url: string): boolean;
|
19 |
|
20 | export = isUrl;
|