MCPcopy
hub / github.com/pillarjs/iconv-lite / Codec

Interface Codec

lib/index.d.ts:46–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 export interface Codec {
47 encoder: new (options?: EncodeOptions, codec?: Codec) => EncoderStream;
48 decoder: new (options?: DecodeOptions, codec?: Codec) => DecoderStream;
49 bomAware?: boolean;
50 [key: string]: any;
51 }
52
53 /** Encodes a `string` into a `Buffer`, using the provided `encoding`. */
54 export function encode (content: string, encoding: Encoding, options?: EncodeOptions): Buffer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…