Works with
•JSR Score64%•It is unknown whether this package works with Node.js, Deno, Browsers, Cloudflare Workers, Bun




Published2 years ago (0.215.0)
Port of the Go encoding/hex library.
This module is browser compatible.
Examples
Example 1
Example 1
import { decodeHex, encodeHex, } from "@std/encoding/hex"; const binary = new TextEncoder().encode("abc"); const encoded = encodeHex(binary); console.log(encoded); // => "616263" console.log(decodeHex(encoded)); // => Uint8Array(3) [ 97, 98, 99 ]