1.0.13 • Published 7 months ago

localhost-url-regex v1.0.13

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.

If you need a more sophisticated solution, check is-localhost-ip.

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 · X @Kikobeats

1.0.13

7 months ago

1.0.12

10 months ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years 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.5-beta.1

2 years ago

1.0.5-beta.0

2 years ago

1.0.3

2 years ago