New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

zmq

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zmq

Bindings for node.js to zeromq

  • 2.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.3K
increased by1.29%
Maintainers
2
Weekly downloads
 
Created
Source

node-zeromq

ØMQ bindings for node.js.

Installation

$ npm install zmq

Example

producer.js:

var zmq = require('zmq')
  , sock = zmq.socket('push');

sock.bindSync('tcp://127.0.0.1:3000');
console.log('Producer bound to port 3000');

setInterval(function(){
  console.log('sending work');
  sock.send('some work');
}, 500);

worker.js:


var zmq = require('zmq')
  , sock = zmq.socket('pull');

sock.connect('tcp://127.0.0.1:3000');
console.log('Worker connected to port 3000');

sock.on('message', function(msg){
  console.log('work: %s', msg.toString());
});

Running tests

Install dev deps:

 $ npm install

Build:

 $ make

Test:

 $ make test

Contributors

Authored by Justin Tulloss, maintained by Shripad K and TJ Holowaychuk. To contribute please ensure all tests pass, and do your best to maintain the style used within the rest of the library.

Output of git summary:

  project: zeromq.node
  commits: 260
  files  : 38
  authors: 
    114 Justin Tulloss          43.8%
     53 Tj Holowaychuk          20.4%
     48 Stéphan Kochen         18.5%
     12 jeremybarnes            4.6%
     10 TJ Holowaychuk          3.8%
      9 mike castleman          3.5%
      3 Yaroslav Shirokov       1.2%
      2 Corey Jewett            0.8%
      2 mgc                     0.8%
      1 rick                    0.4%
      1 Matt Crocker            0.4%
      1 Joshua Gourneau         0.4%
      1 Micheil Smith           0.4%
      1 Jeremy Barnes           0.4%
      1 nponeccop               0.4%
      1 Paul Bergeron           0.4%

FAQs

Package last updated on 18 Oct 2012

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc