UNPKG

kafkajs

Version:

A modern Apache Kafka client for node.js

5 lines (4 loc) 148 B
module.exports = ({ topics }) => topics.flatMap(({ topicName, partitions }) => partitions.map(partition => ({ topicName, ...partition })) )