1.2.0 • Published 3 months ago
url-http v1.2.0
url-http
Get input as normalized WHATWG URL.
Install
$ npm install url-http --save
Usage
const urlHttp = require('url-http')
!!urlHttp('https://kikobeats.com') // ==> true
!!urlHttp('https://kikobeats.com') // ==> true
!!urlHttp('mailto://kiko@beats.com') // ==> false
!!urlHttp('callto:192.168.103.77+type=ip') // ==> false
If you need to run the package in a browser environment, you can save some bytes using the lightweight version:
const urlHttp = require('url-http/lightweight')
!!urlHttp('https://kikobeats.com') // ==> true
!!urlHttp('https://kikobeats.com') // ==> true
!!urlHttp('mailto://kiko@beats.com') // ==> false
!!urlHttp('callto:192.168.103.77+type=ip') // ==> false
License
url-http © Kiko Beats, released under the MIT License. Authored and maintained by Kiko Beats with help from contributors.
kikobeats.com · GitHub Kiko Beats · Twitter @Kikobeats
1.2.0
3 months ago
1.1.3
6 months ago
1.1.1
8 months ago
1.1.0
8 months ago
1.1.2
8 months ago
1.0.15
8 months ago
1.0.14
9 months ago
1.1.0-0
8 months ago
1.0.13
9 months ago
1.0.12
11 months ago
1.0.9
1 year ago
1.0.11
12 months ago
1.0.10
12 months ago
1.0.8
1 year ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago