npm.io
1.0.3 • Published 6 years ago

is-localhost-url

Licence
MIT
Version
1.0.3
Deps
0
Size
7 kB
Vulns
0
Weekly
0
Stars
17
DeprecatedThis package is deprecated

is-localhost-url

Check if a URL is from localhost

Install

$ npm install is-localhost-url --save

Usage

const isLocalhostUrl = require('is-localhost-url')

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

License

is-localhost-url Kiko Beats, released under the MIT License.
Authored and maintained by Kiko Beats with help from contributors.

kikobeats.com · GitHub Kiko Beats · Twitter @Kikobeats

Keywords