UNPKG

@light-merlin-dark/tok

Version:

Fast token estimation and cost calculation for enterprise LLMs with CLI and MCP support

14 lines 391 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CharDivEstimator = void 0; class CharDivEstimator { divisor; constructor(divisor = 4) { this.divisor = divisor; } estimate(text) { return Math.ceil(text.length / this.divisor); } } exports.CharDivEstimator = CharDivEstimator; //# sourceMappingURL=CharDivEstimator.js.map