Check whether an url is external or not.
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
bower.json
index.js
package.json

README.md

Is URL External?

A simple function that tells you whether an URL is external or not.

Installation

  • Latest release
  • Bower: bower install is-url-external
  • NPM: npm install is-url-external

Usage

var isExternal = require('is-url-external');
isExternal('https://github.com/mrded/is-url-external'); // true | false