Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    is-absolute-urlpublic

    is-absolute-url Build Status

    Check if an URL is absolute

    Install

    $ npm install --save is-absolute-url

    Usage

    var isAbsoluteUrl = require('is-absolute-url');
     
    isAbsoluteUrl('http://sindresorhus.com/foo/bar');
    //=> true
     
    isAbsoluteUrl('//sindresorhus.com');
    //=> false
     
    isAbsoluteUrl('foo/bar');
    //=> false

    Related

    See is-relative-url for the inverse.

    License

    MIT © Sindre Sorhus

    install

    npm i is-absolute-url

    Downloadsweekly downloads

    1,962,375

    version

    2.1.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar