Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
363 bytes
|
Line | |
---|
1 | /**
|
---|
2 | Check if a URL is absolute.
|
---|
3 |
|
---|
4 | @param url - The URL to check.
|
---|
5 |
|
---|
6 | @example
|
---|
7 | ```
|
---|
8 | import isAbsoluteUrl = require('is-absolute-url');
|
---|
9 |
|
---|
10 | isAbsoluteUrl('http://sindresorhus.com/foo/bar');
|
---|
11 | //=> true
|
---|
12 |
|
---|
13 | isAbsoluteUrl('//sindresorhus.com');
|
---|
14 | //=> false
|
---|
15 |
|
---|
16 | isAbsoluteUrl('foo/bar');
|
---|
17 | //=> false
|
---|
18 | ```
|
---|
19 | */
|
---|
20 | declare function isAbsoluteUrl(url: string): boolean;
|
---|
21 |
|
---|
22 | export = isAbsoluteUrl;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.