summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/is-relative-url/index.d.ts
blob: ace8d5945ff11d28f457c72eac0cd76b66b5e0fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
Check if an URL is relative.

@param url - The URL to check.

@example
```
import isRelativeUrl = require('is-relative-url');

isRelativeUrl('foo/bar');
//=> true

isRelativeUrl('https://sindresorhus.com/foo/bar');
//=> false

isRelativeUrl('//sindresorhus.com');
//=> true
```
*/
declare function isRelativeUrl(url: string): boolean;

export = isRelativeUrl;