0.6.8 • Published 2 years ago

urlregex v0.6.8

Weekly downloads
968
License
MIT
Repository
github
Last release
2 years 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

2 years ago

0.6.8

2 years ago

0.6.7

2 years ago

0.6.4

2 years ago

0.6.1

2 years ago

0.6.0

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

6 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago