1.0.16 • Published 5 years ago

localhost-string-validator v1.0.16

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

localhost-validator

Validate if string is a proper localhost

Getting Started

import isLocalHost from 'localhost-validator'

isLocalHost('https://localhost:3000') // true
isLocalHost('https://host.com') // false

Installing

npm i --save localhost-validator

Running the tests

npm run test

Authors

  • Raymaen007