0.6.8 • Published 9 months ago

urlregex v0.6.8

Weekly downloads
968
License
MIT
Repository
github
Last release
9 months ago

urlregex

Greenkeeper badge

No-dependency URL validation for Node and the browser.

Install

npm install urlregex

Usage

const urlRegex = require('urlregex');
const isValid = urlRegex().test('http://github.com');

allowedProtocols option

You can provide the allowedProtocols option to specify which protocols are allowed in the URL. It can either be an array of strings or the '*' wildcard to allow any protocol.

Credits

Mostly based on url-regex package, but optimized for browser usage

License

MIT

1.0.0

9 months ago

0.6.8

9 months ago

0.6.7

1 year ago

0.6.4

1 year ago

0.6.1

1 year ago

0.6.0

3 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

5 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago