npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@mh-cbon/bonjour-publish

v1.0.1

Published

Publish a service on bonjour

Downloads

4

Readme

bonjour-publish

Publish a service on bonjour

Install

git clone https://github.com/mh-cbon/bonjour-publish.git
cd bonjour-publish
npm link . --local
bonjour-publish -H 127.0.0.1 -P 8088 -T rc "Title of the server"
...
ctrl+c to quit

Command line

bonjour-publish 1.0.0
Publish a service on bonjour

Usage

  bonjour-publish --host=127.0.0.1 --port=8088 --type=some  "Title of the server"

Options

  Announcement (bonjour)
  --port | -P       Port which your server listens (8090)
  --type | -T       Type of interface provided by your server (http|smtp..)
  --host | -H       Host which your server listens (127.0.0.1)
  --txt             A JSON object to send as a TXT record.
  --v4 [interface]  If Host option is not provided, announce ipv4 address as host,
                    instead of your local bonjour hostname.
                    If interface (eth0, lo..) is provided,
                    only this interface will be announced.
  --v6 [interface]  If Host option is not provided, announce ipv6 address as host,
                    instead of your local bonjour hostname.
                    If interface (eth0, lo..) is provided,
                    only this interface will be announced.

  Socket setup (mdns)
  --multicast | -M  Use UDP multicasting
  --interface | -I  Explicitly specify a network interface. Defaults to all. (192.168.0.2)
  --udpport         Set the UDP port (5353)
  --udpip           Set the UDP IP (224.0.0.251)
  --ttl | -T        Set the multicast TTL (255)
  --loopback | -L   Receive your own packets
  --reuseAddr | -R  Set the reuseAddr on the socket (node >=0.11.13)
  --verbose | -v    Set verbosity. Defaults to * Pass in modules name to debug.

Examples
  bonjour-publish -H 127.0.0.1 -P 8088 -T http "hello!"
  bonjour-publish -H 127.0.0.1 -P 8088 -T http "I love you,"
  bonjour-publish -L -H 127.0.0.1 -P 8088 -T http "Could you give me your name ?"
  bonjour-publish -L -R -P 8088 -T http "doors"
  bonjour-publish -L -R -M -I 192.168.0.2 -P 8088 -T http "doors"
  bonjour-publish --txt '{"password":123}' -P 8088 -T http "doors"

Read more
  Service type must be one described at
  http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml

read more

  • https://github.com/watson/bonjour
  • https://github.com/mafintosh/multicast-dns
  • https://github.com/watson/bonjour-browser
  • http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml