1.0.11 • Published 7 months ago

localhost-url-regex v1.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

localhost-url-regex

Regex for matching localhost alike URLs.

Note: There are Bogon IP address ranges not covered by this regex.

The intention of this package is to cover some of the most common cases.

Install

$ npm install localhost-url-regex --save

Usage

const localhostUrl = require('localhost-url-regex')

localhostUrl().test('http://localhost:3000') // true
localhostUrl().test('http://example.com') // false

License

localhost-url-regex © 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.0.11

7 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

12 months ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.5-beta.1

1 year ago

1.0.5-beta.0

1 year ago

1.0.3

1 year ago