Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/libauth/src/lib/format/base64.ts>base64ToBin

An ultra-lightweight, zero-dependency JavaScript library for Bitcoin Cash, Bitcoin, and Bitauth applications.
Latest
variable base64ToBin
import { base64ToBin } from "https://deno.land/x/libauth@v2.0.0-alpha.9/src/lib/format/base64.ts";

Convert a base64-encoded string to a Uint8Array.

Note, this method always completes. If validBase64 is not valid base64, an incorrect result will be returned. If validBase64 is potentially malformed, check it with isBase64 before calling this method.

type

(validBase64: string) => unknown