Version 1
[yaffs-website] / node_modules / is-absolute-url / readme.md
1 # is-absolute-url [![Build Status](https://travis-ci.org/sindresorhus/is-absolute-url.svg?branch=master)](https://travis-ci.org/sindresorhus/is-absolute-url)
2
3 > Check if an URL is absolute
4
5
6 ## Install
7
8 ```sh
9 $ npm install --save is-absolute-url
10 ```
11
12
13 ## Usage
14
15 ```js
16 var isAbsoluteUrl = require('is-absolute-url');
17
18 isAbsoluteUrl('http://sindresorhus.com/foo/bar');
19 //=> true
20
21 isAbsoluteUrl('//sindresorhus.com');
22 //=> false
23
24 isAbsoluteUrl('foo/bar');
25 //=> false
26 ```
27
28
29 ## Related
30
31 See [is-relative-url](https://github.com/sindresorhus/is-relative-url) for the inverse.
32
33
34 ## License
35
36 MIT © [Sindre Sorhus](http://sindresorhus.com)