# zeesh

> Streaming interface for ZeroMQ events

Latest version **0.0.21** (published 2015-01-17) · BSD-2-Clause license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install zeesh
pnpm add zeesh
yarn add zeesh
bun add zeesh
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.21 |
| Published | 2015-01-17 |
| First published | 2014-06-20 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Johnny Ray Austin |
| Maintainers | johnnyray |

## Links

- npm: https://www.npmjs.com/package/zeesh
- Repository: https://github.com/jray/zeesh
- Issues: https://github.com/jray/zeesh/issues
- npm.io page: https://npm.io/package/zeesh

## Dependencies (2)

- [zmq](https://npm.io/package/zmq.md) ^2.7.0
- [highland](https://npm.io/package/highland.md) ^1.25.4

## Recent versions

- 0.0.21 (latest) — 2015-01-17
- 0.0.2 — 2014-11-07
- 0.0.1 — 2014-06-20

## README

```javascript

  var fs = require( 'fs' );
  var zmq = require( 'zmq' );
  var sock = zmq.socket( 'push' );
  var Zeesh = require( 'zeesh' );
  var z = new Zeesh();
  // ZeroMQ connection
  var opts = {
    host: '127.0.0.1',
    port: 3000
  };

  z.on('ready', function(){
    var stream = z.stream();
    stream.pipe( fs.createWriteStream( './foo.txt' ) );

    // send data to be streamed
    sock.bindSync( 'tcp://' + opts.host + ':' + opts.port );
    sock.send( 'foo 0\n' );
    sock.send( 'foo 1\n' );

    var file = fs.readFileSync( './foo.txt' ).toString();
    console.log( file );

    /*
      foo 0
      foo 1
     */
  })
  .connect();

```

To run tests
```
  npm test
```

---
_Source: https://npm.io/package/zeesh · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
