Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
denoland/stdWorks with
•JSR Score100%•This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




Downloads125,690/wk
•Published9 months ago (1.0.10)
Utilities for encoding and decoding common formats like hex, base64, and varint
Port of the Go encoding/hex library.
import { decodeHex, encodeHex, } from "@std/encoding/hex"; import { assertEquals } from "@std/assert"; assertEquals(encodeHex("abc"), "616263"); assertEquals( decodeHex("616263"), new TextEncoder().encode("abc"), );
Add Package
deno add jsr:@std/encoding
Import symbol
import * as mod from "@std/encoding/hex";
Import directly with a jsr specifier
import * as mod from "jsr:@std/encoding/hex";
Add Package
pnpm i jsr:@std/encoding
pnpm dlx jsr add @std/encoding
Import symbol
import * as mod from "@std/encoding/hex";
Add Package
yarn add jsr:@std/encoding
yarn dlx jsr add @std/encoding
Import symbol
import * as mod from "@std/encoding/hex";
Add Package
vlt install jsr:@std/encoding
Import symbol
import * as mod from "@std/encoding/hex";
Add Package
npx jsr add @std/encoding
Import symbol
import * as mod from "@std/encoding/hex";
Add Package
bunx jsr add @std/encoding
Import symbol
import * as mod from "@std/encoding/hex";