This release is 9 versions behind 1.0.10 — the latest version of @std/encoding. Jump to latest
Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
Works with
•JSR Score100%•This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




Downloads83,221/wk
•Published2 years ago (1.0.1)
Utilities for encoding and decoding common formats like hex, base64, and varint
Utilities for encoding and decoding common formats like hex, base64, and varint.
import { encodeBase64, decodeBase64 } from "@std/encoding"; import { assertEquals } from "@std/assert"; const foobar = new TextEncoder().encode("foobar"); assertEquals(encodeBase64(foobar), "Zm9vYmFy"); assertEquals(decodeBase64("Zm9vYmFy"), foobar);
Built and signed on
GitHub Actions
Add Package
deno add jsr:@std/encoding
Import symbol
import * as encoding from "@std/encoding";
Import directly with a jsr specifier
import * as encoding from "jsr:@std/encoding";
Add Package
pnpm i jsr:@std/encoding
pnpm dlx jsr add @std/encoding
Import symbol
import * as encoding from "@std/encoding";
Add Package
yarn add jsr:@std/encoding
yarn dlx jsr add @std/encoding
Import symbol
import * as encoding from "@std/encoding";
Add Package
vlt install jsr:@std/encoding
Import symbol
import * as encoding from "@std/encoding";
Add Package
npx jsr add @std/encoding
Import symbol
import * as encoding from "@std/encoding";
Add Package
bunx jsr add @std/encoding
Import symbol
import * as encoding from "@std/encoding";