is-url-superb
Check if a string is an URL
Last updated 10 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm
$ cnpm install is-url-superb 
SYNC missed versions from official npm registry.

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

Current Tags

  • 6.1.0                                ...           latest (4 years ago)

4 Versions

  • 6.1.0                                ...           4 years ago
  • 4.0.0                                ...           5 years ago
  • 2.0.0                                ...           10 years ago
  • 3.0.0                                ...           6 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org