JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2377090
  • Score
    100M100P100Q209770F
  • License MIT

Check if a string is a URL

Package Exports

  • is-url-superb

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-url-superb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-url-superb Build Status

Check if a string is a URL

Created because the is-url module is too loose. This module depends on a much more comprehensive regex.

Install

$ npm install is-url-superb

Usage

const isUrl = require('is-url-superb');

isUrl('https://sindresorhus.com');
//=> true

isUrl('//sindresorhus.com');
//=> true

isUrl('unicorn');
//=> false

License

MIT © Sindre Sorhus