1.1.2 • Published 10 years ago

zeromq-frame-parser v1.1.2

Weekly downloads
3
License
ISC
Repository
github
Last release
10 years ago

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.