is-url-http
TypeScript icon, indicating that this package has built-in type declarations

2.3.9 • Public • Published

is-url-http

Last version Coverage Status NPM Status

Check if an URL is a valid HTTP URL.

Install

$ npm install is-url-http --save

Usage

const isUrlHttp = require('is-url-http')

isUrlHttp('https://kikobeats.com') // ==> true
isUrlHttp('https://kikobeats.com') // ==> true
isUrlHttp('mailto://kiko@beats.com') // ==> false
isUrlHttp('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 isUrlHttp = require('is-url-http/lightweight')

isUrlHttp('https://kikobeats.com') // ==> true
isUrlHttp('https://kikobeats.com') // ==> true
isUrlHttp('mailto://kiko@beats.com') // ==> false
isUrlHttp('callto:192.168.103.77+type=ip') // ==> false

License

is-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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.3.91,722latest

Version History

VersionDownloads (Last 7 Days)Published
2.3.91,722
2.3.8553
2.3.7160
2.3.629
2.3.5113
2.3.41
2.3.31
2.3.2251
2.3.16
2.3.03
2.2.1424
2.2.132
2.2.120
2.2.115
2.2.100
2.2.92
2.2.80
2.2.72
2.2.61
2.2.5784
2.2.441
2.2.384
2.2.210
2.2.11
2.2.02
2.1.2213
2.1.11
2.1.00
2.0.10
2.0.02
1.2.486
1.2.33
1.2.20
1.2.10
1.2.02
1.1.32
1.1.21
1.1.10
1.0.20
1.1.02
1.0.11
1.0.00

Package Sidebar

Install

npm i is-url-http

Weekly Downloads

3,541

Version

2.3.9

License

MIT

Unpacked Size

5.76 kB

Total Files

6

Last publish

Collaborators

  • kikobeats