mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-23 06:10:02 +08:00
* Expand Node 24 text-encoding support * Update codec diagnostics for encodeInto support
8 lines
358 B
TypeScript
8 lines
358 B
TypeScript
// @dynamic
|
|
// @stderr
|
|
import { reportEncoding, encodeInto, transcode } from "node24-text-encoding-fixture/encoding.js";
|
|
reportEncoding();
|
|
const destination = new Uint8Array(8).fill(0x55);
|
|
console.log("boundary", JSON.stringify(encodeInto("😀é", destination)));
|
|
console.log("converted", transcode(Buffer.from("café"), "utf8", "latin1").toString("hex"));
|