1.0.3 • Published 4 years ago
is-localhost-url v1.0.3
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