multicast-dns-service-types

WebJar for multicast-dns-service-types

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

multicast-dns-service-types
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

multicast-dns-service-types
WebJar for multicast-dns-service-types
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mafintosh/multicast-dns-service-types

Download multicast-dns-service-types

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/multicast-dns-service-types/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>multicast-dns-service-types</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/multicast-dns-service-types/
implementation 'org.webjars.npm:multicast-dns-service-types:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/multicast-dns-service-types/
implementation ("org.webjars.npm:multicast-dns-service-types:1.1.0")
'org.webjars.npm:multicast-dns-service-types:jar:1.1.0'
<dependency org="org.webjars.npm" name="multicast-dns-service-types" rev="1.1.0">
  <artifact name="multicast-dns-service-types" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='multicast-dns-service-types', version='1.1.0')
)
libraryDependencies += "org.webjars.npm" % "multicast-dns-service-types" % "1.1.0"
[org.webjars.npm/multicast-dns-service-types "1.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

multicast-dns-service-types

Parse and stringify mdns service types

npm install multicast-dns-service-types

build status

Usage

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

types.stringify(name, protocol, subtypes)
types.tcp(name, subtypes) // set protocol to tcp
types.udp(name, subtypes) // set protocol to udp

License

MIT

Versions

Version
1.1.0