Repository
Current version released
4 years ago
Dependencies
deno.land/x
Base
A tool to encode 6 decode from & to different alphabets.
Usage
// Imports
import { Base } from "https://deno.land/x/base/mod.ts";
// Create a new base.
const binary = new Base("01");
// Encode some data.
binary.encode(123);
// => "1111011"
// Decode some data.
binary.decode("1111011");
// => 123n
Base comes prebundled with these bases:
base2
orbinary
base8
oroctal
base16
orhex
base32
base36
base62