0.1.0 • Published 6 years ago

@nimley/kafka-nimley v0.1.0

Weekly downloads
1
License
UNLICENSED
Repository
github
Last release
6 years ago

Kafka Nimley

A simple wrapper around kafkajs

Installation

npm install kafka-nimley --save

Usage

const kafka = require("kafka-nimley");

const client = await kafka.connect();

// Send a message to a topic `test`:
client.producer.send({
  topic: "test",
  messages: [
    {
      key: "test",
      value: "data",
      headers: {
        "key": "value"
      }
    }
  ]
});
0.1.0

6 years ago