
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
disclose is a ZeroMQ publisher of the npm publish event stream.
$ npm i -g disclose
$ disclose
import zmq from 'zmq';
import Disclose from 'disclose';
let socket = zmq.socket('sub');
socket.identity = 'npm-publish-subscriber-' + process.pid;
socket.connect('tcp://127.0.0.1:12345');
socket.subscribe(Disclose.EVENT);
socket.on('message', function(type/*, identity*/, event) {
type = type.toString();
event = JSON.parse(event.toString());
console.log(event.id);
});
All command-line flags are optional. Defaults are listed below.
--interval, -iThe polling interval, in milliseconds, disclose should use when checking
for new packages. Defaults to 30,000 or 30 seconds.
--host, -hThe hostname, including protocol and port, (but not path) of the npm registry to observe. Defaults to 'https://skimdb.npmjs.com:443'.
--adddess, -aThe address to which ZeroMQ should bind. Defaults to 'tcp://127.0.0.1:12345'.
--identity, -idThe ZeroMQ socket identity to use. Will be formatted to include process
pid if name contains '%d'. Defaults to 'npm-publish-source-%d'.
FAQs
A ZeroMQ npm publish event source.
The npm package disclose receives a total of 6 weekly downloads. As such, disclose popularity was classified as not popular.
We found that disclose demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.