kafka-split

1.0.1 • Public • Published

kafka-split

Build Status Coverage Status

Transform stream for splitting up kafka messages

Install

$ npm install kafka-split

Usage

'use strict'

const Split = require('kafka-split')
const net = require('net')

const socket = net.connect()
socket.pipe(Split()).on('data', (chunk) => {
  // chunk will be a kafka buffer that represents a full kafka message
  // starting with the size
})

Test

$ npm test

Author

Evan Lucas

License

MIT (See LICENSE for more info)

Readme

Keywords

none

Package Sidebar

Install

npm i kafka-split

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • evanlucas