Skip to main content
Home

Built and signed on GitHub Actions

A simple library to encode and decode base58 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
4 months ago (0.1.5)

@quentinadam/base58

JSR NPM CI

A simple library to encode and decode base58 strings.

Optionnaly supports specifying the alphabet to use.

Usage

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

base58.encode(new Uint8Array([72, 101, 108, 108, 111])); // returns '9Ajdvzr'

base58.decode('9Ajdvzr'); // returns Uint8Array([72, 101, 108, 108, 111])
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/base58

Import symbol

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

Import directly with a jsr specifier

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

Add Package

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

Import symbol

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

Add Package

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

Import symbol

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

Add Package

npx jsr add @quentinadam/base58

Import symbol

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

Add Package

bunx jsr add @quentinadam/base58

Import symbol

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