@into-the-fathom/base64
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Base64 Coder

function decode(textData: string): Uint8Array

Decodes a base64 encoded string into the binary data.

import * as base64 from "@into-the-fathom/base64";

let encodedData = "...";
let data = base64.decode(encodedData);
console.log(data);
// { Uint8Array: [] }

function encode(data: Arrayish): string

Decodes a base64 encoded string into the binary data.

import * as base64 from "@into-the-fathom/base64";

let data = [ ];
let encodedData = base64.encode(data);
console.log(encodedData);
// "..."

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i @into-the-fathom/base64

Weekly Downloads

30

Version

1.1.0

License

MIT

Unpacked Size

11 kB

Total Files

35

Last publish

Collaborators

  • tshrma
  • vitalii.koval
  • vitalii47
  • into-the-fathom