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

5.7.0 • Public • Published

Base64 Coder

function decode(textData: string): Uint8Array

Decodes a base64 encoded string into the binary data.

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

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

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i @ethersproject/base64

Weekly Downloads

776,879

Version

5.7.0

License

MIT

Unpacked Size

11.3 kB

Total Files

35

Last publish

Collaborators

  • ricmoo