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.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.

§Properties

§
encoding: string readonly
[src]

Gets "shift_jis".

§
fatal: boolean readonly
[src]

Gets true if the error mode is "fatal", otherwise false.

§
writable: WritableStream<string> readonly
[src]
§
readable: ReadableStream<Uint8Array> readonly
[src]