is-url-external

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

Usage no npm install needed!

<script type="module">
  import isUrlExternal from 'https://cdn.skypack.dev/is-url-external';
</script>

README

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