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

5.0.4 • Public • Published

Base64 Coder

function decode(textData: string): Uint8Array

Decodes a base64 encoded string into the binary data.

import * as base64 from "@wansproject/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 "@wansproject/base64";

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

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i @wansproject/base64

Weekly Downloads

1

Version

5.0.4

License

MIT

Unpacked Size

8.53 kB

Total Files

22

Last publish

Collaborators

  • molin0000
  • mutouji