1.0.0 • Published 7 years ago

@allstar/parse-hosts v1.0.0

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
7 years ago

Parse Hosts

Simple parser for host strings

const parse = require('@allstar/parse-hosts')
parse('0.0.0.0:4222,10.0.2.15:4931,nats:/192.141.0.1:5543', 'nats://')
[
  'nats://0.0.0.0:4222'
, 'nats://10.0.2.15:4931'
, 'nats://192.141:0.1:5543'
]
1.0.0

7 years ago