Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Ms932.EncoderStream

import { Ms932 } from "https://raw.githubusercontent.com/i-xi-dev/ms932-encoder.es/2.1.7/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 [Symbol.toStringTag](): string;
}

§Constructors

§
new EncoderStream(options?: EncoderOptions)
[src]
@param options
  • The options for Ms932.EncoderStream.

§Properties

§
[Symbol.toStringTag]: string readonly
[src]