UNPKG

kafka-ts

Version:

**KafkaTS** is a Apache Kafka client library for Node.js. It provides both a low-level API for communicating directly with the Apache Kafka cluster and high-level APIs for publishing and subscribing to Kafka topics.

8 lines (7 loc) 212 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.clamp = void 0; const clamp = (value, min, max) => { return Math.min(Math.max(value, min), max); }; exports.clamp = clamp;