Skip to main content
Home

Built and signed on GitHub Actions

A simple library to encode and decode base32 strings

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 months ago (0.1.5)

@quentinadam/base32

JSR NPM CI

A simple library to encode and decode base32 strings.

Optionnaly supports specifying the alphabet to use.

Usage

import * as base32 from '@quentinadam/base32';

base32.encode(new Uint8Array([102, 111, 111])); // returns 'MZXW6==='

base32.decode('MZXW6==='); // returns Uint8Array([102, 111, 111])

base32.encode(new Uint8Array([102, 111, 111]), { padding: false }); // returns 'MZXW6'
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@quentinadam/base32

Import symbol

import * as base__ from "@quentinadam/base32";
or

Import directly with a jsr specifier

import * as base__ from "jsr:@quentinadam/base32";

Add Package

pnpm i jsr:@quentinadam/base32
or (using pnpm 10.8 or older)
pnpm dlx jsr add @quentinadam/base32

Import symbol

import * as base__ from "@quentinadam/base32";

Add Package

yarn add jsr:@quentinadam/base32
or (using Yarn 4.8 or older)
yarn dlx jsr add @quentinadam/base32

Import symbol

import * as base__ from "@quentinadam/base32";

Add Package

vlt install jsr:@quentinadam/base32

Import symbol

import * as base__ from "@quentinadam/base32";

Add Package

npx jsr add @quentinadam/base32

Import symbol

import * as base__ from "@quentinadam/base32";

Add Package

bunx jsr add @quentinadam/base32

Import symbol

import * as base__ from "@quentinadam/base32";