multicast-dns-service-types
Parse and stringify mdns service types
npm install multicast-dns-service-types
Usage
var types =console // _http._tcp._sub1._sub2console // {name: 'http', protocol: 'tcp', subtypes: ['sub1', 'sub2']}
The following shorthands also exist
typestypes // set protocol to tcptypes // set protocol to udp
License
MIT