localhost-string-validator
TypeScript icon, indicating that this package has built-in type declarations

1.0.16 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.16
    11
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.16
    11
  • 1.0.15
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i localhost-string-validator

Weekly Downloads

2

Version

1.0.16

License

MIT

Unpacked Size

13.6 kB

Total Files

12

Last publish

Collaborators

  • eylonsargon