Skip to content

Eylon-sargon/localhost-validator

Repository files navigation

localhost-string-validator

Validate if string is a proper localhost

Getting Started

import isLocalHost from 'localhost-string-validator'

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

Installing

npm i --save localhost-string-validator

Running the tests

npm run test

Authors

  • Raymaen007

About

Checks if sting is a valid local host i.e - https://localhost:5000

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published