(onUsage)
| 39 | */ |
| 40 | class UsageNormalizer extends Transform { |
| 41 | constructor(onUsage) { |
| 42 | super(); |
| 43 | this._buf = ''; |
| 44 | this._onUsage = onUsage; |
| 45 | this._inputTokens = 0; |
| 46 | this._outputTokens = 0; |
| 47 | } |
| 48 | |
| 49 | _transform(chunk, _enc, cb) { |
| 50 | this._buf += chunk.toString(); |
nothing calls this directly
no outgoing calls
no test coverage detected