is-web-address
v0.1.0
Published
## Install
Downloads
1
Readme
is-web-address
Install
yarn add is-web-address
Or
npm i is-web-address
List of valid and invalid web address that we have cover.
- [x] (2ms)
- [x] example.com.
- [x] example..com (1ms)
- [x] example...com.
- [x] 192.168.1..0
- [x] https://example.com.
- [x] https://example..com
- [x] https://example...com.
- [x] example.com
- [x] 192.168.1.1
- [x] http://192.168.1.1
- [x] http://example.com
- [x] http://example.com/
- [x] http://example.com:8080
- [x] http://example.com/hello-world (1ms)
- [x] example.com/search?q=hello+world
- [x] http://example.com/very-long/path/and?it=should&be=works&too=true
- [x] http://192.168.1.1/very-long/path/and?it=should&be=works&too=true