Ms932.EncoderStream
import { Ms932 } from "https://raw.githubusercontent.com/i-xi-dev/ms932-encoder.es/2.0.11/mod.ts";
const { EncoderStream } = Ms932;
The TransformStream
that encodes a stream of string into Windows-31J encoded byte stream.
@example
const encoderStream = new Ms932.EncoderStream();
// readableStream: ReadableStream<string>
// writableStream: WritableStream<Uint8Array>
readableStream.pipeThrough(encoderStream).pipeTo(writableStream);
class EncoderStream {}
constructor(options?: EncoderOptions);
get encoding(): string;
get fatal(): boolean;
get writable(): WritableStream<string>;
get readable(): ReadableStream<Uint8Array>;
§Constructors
§
new EncoderStream(options?: EncoderOptions)
[src]@param options
- The options for
Ms932.EncoderStream
.