Package Exports
- url-http
- url-http/index.js
- url-http/lightweight
- url-http/lightweight.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (url-http) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
url-http
Get input as normalized WHATWG URL.
Install
$ npm install url-http --saveUsage
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') // ==> falseIf 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') // ==> falseLicense
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