Open this example in the interactive library
Source code
import { Buffer, isUtf8, isAscii } from "node:buffer";
console.log(Buffer.from("ABC").toString("hex"));
Sample output
414243

Open this example in the interactive library
import { Buffer, isUtf8, isAscii } from "node:buffer";
console.log(Buffer.from("ABC").toString("hex"));
414243