Have ideas to improve npm?Join in the discussion! »

is-url-superb

3.0.0 • Public • Published

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

Install

npm i [email protected]

Version

3.0.0

License

MIT

Unpacked Size

2.86 kB

Total Files

5

Last publish

Collaborators

  • avatar
  • avatar