node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org ยป

zeromq-frame-parser

Build Status

zeromq-frame-parser

Parse ZMTP (ZeroMQ Message Transport Protocol) frames.

Installation

npm install zeromq-frame-parser

API

What it says on the tin.

parse(buffer) -> array of buffers

Parses a single set of frames, and returns an array of their bodies.

parse.frame(buffer) -> { body: Buffer, more: Boolean }

Parses a single frame.

Extras

The binary-parse-fn style parsers are exposed as zeromq-frame-parser/parser. They are exposed under the same names as the parse functions. This is considered public API.