Gathering detailed insights and metrics for mdns
Gathering detailed insights and metrics for mdns
Gathering detailed insights and metrics for mdns
Gathering detailed insights and metrics for mdns
npm install mdns
75.1
Supply Chain
97.1
Quality
78.3
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
871 Stars
631 Commits
146 Forks
24 Watching
6 Branches
35 Contributors
Updated on 26 Nov 2024
JavaScript (62.66%)
C++ (33.24%)
Python (3.36%)
Makefile (0.68%)
Batchfile (0.05%)
Cumulative downloads
Total Downloads
Last day
-16.4%
285
Compared to previous day
Last week
3.1%
2,070
Compared to previous week
Last month
-15.7%
8,799
Compared to previous month
Last year
-8.7%
138,501
Compared to previous year
npm install mdns
(see below)mdns adds multicast DNS service discovery, also known as zeroconf or bonjour to Node.js. It provides an object based interface to announce and browse services on the local network.
1// import the module 2const mdns = require('mdns'); 3 4// advertise a http server on port 4321 5const ad = mdns.createAdvertisement(mdns.tcp('http'), 4321); 6ad.start(); 7 8// watch all http servers 9const browser = mdns.createBrowser(mdns.tcp('http')); 10browser.on('serviceUp', service => { 11 console.log("service up: ", service); 12}); 13browser.on('serviceDown', service => { 14 console.log("service down: ", service); 15}); 16browser.start(); 17 18// discover all available service types 19const all_the_types = mdns.browseThemAll(); // all_the_types is just another browser...
On Linux and other systems using the avahi daemon the avahi dns_sd compat library and its header files are required. On debianesque systems the package name is libavahi-compat-libdnssd-dev
, on fedoraesque systems the package is avahi-compat-libdns_sd-devel
. On other platforms Apple's mDNSResponder is recommended. Care should be taken not to install more than one mDNS stack on a system.
On Windows you are going to need Apples "Bonjour SDK for Windows". You can download it either from Apple (registration required) or various unofficial sources. Take your pick. After installing the SDK restart your computer and make sure the BONJOUR_SDK_HOME
environment variable is set. You'll also need a compiler. Microsoft Visual Studio Express will do. On Windows node >=0.7.9 is required.
mdns is available as a npm package:
1npm install mdns
If you want to play with the latest source code, here is a more manual approach:
1git clone http://github.com/agnat/node_mdns 2cd node_mdns 3npm link && npm test
In case you want to run or even publish your package using the development version of mdns you may set the version field to a tarball URL:
1{ "name": "discomvobulator" 2, "version": "0.0.1" 3, "description": "covers all your discomvobulation needs" 4, "dependencies": 5 { "mdns": "https://github.com/agnat/node_mdns/tarball/master" 6 } 7}
See the user guide.
In random order:
Your name is missing on the list? Shame on me. Please open an issue.
If you find a bug, please report it using the issue tracker.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 10/19 approved changesets -- score normalized to 5
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
10 existing vulnerabilities detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More