UNPKG

jtc-utils

Version:
17 lines (16 loc) 472 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StandardDecoder = void 0; class StandardDecoder { decoder; constructor(encoding, options) { this.decoder = new TextDecoder(encoding, { fatal: options?.fatal ?? true, ignoreBOM: options?.ignoreBOM, }); } decode(input, options) { return this.decoder.decode(input, options); } } exports.StandardDecoder = StandardDecoder;