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'
]
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'
]
npm i @allstar/parse-hosts
2
1.0.0
MIT