![[ICO]](/icons/blank.gif) | Name | Last modified | Size | Description |
![[PARENTDIR]](/icons/back.gif) | Parent Directory | | - | |
![[ ]](/icons/unknown.gif) | LICENSE | 2023-06-08 13:46 | 1.1K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![[TXT]](/icons/text.gif) | README.md | 2023-06-08 13:46 | 791 | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![[ ]](/icons/unknown.gif) | index.js | 2023-06-08 13:46 | 937 | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![[ ]](/icons/unknown.gif) | package.json | 2023-06-08 13:46 | 1.6K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![[ ]](/icons/unknown.gif) | test.js | 2023-06-08 13:46 | 1.1K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
# multicast-dns-service-types
Parse and stringify mdns service types
```
npm install multicast-dns-service-types
```
[](http://travis-ci.org/mafintosh/multicast-dns-service-types)
## Usage
``` js
var types = require('multicast-dns-service-types')
console.log(types.stringify({name: 'http', protocol: 'tcp', subtypes: ['sub1', 'sub2']})) // _http._tcp._sub1._sub2
console.log(types.parse('_http._tcp._sub1._sub2')) // {name: 'http', protocol: 'tcp', subtypes: ['sub1', 'sub2']}
```
The following shorthands also exist
``` js
types.stringify(name, protocol, subtypes)
types.tcp(name, subtypes) // set protocol to tcp
types.udp(name, subtypes) // set protocol to udp
```
## License
MIT