This JS-script calculates the partition based on a key and the amount of partitions for a JS Kafka producer in way consistent to the default Java Kafka client
Pure TypeScript implementation of MurmurHash2 and MurmurHash3 algorithms for Node.js and browsers
Zero dependency murmur2 buffer hash algorithm implementation in JavaScript