This release is 4 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
Utilities for encoding and decoding common formats like hex, base64, and varint
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
100%
Published
a year ago (1.0.6)
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";