This package has been deprecated

Author message:

Please update @shapeshiftoss/hdwallet; this fork is no longer required.

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

5.3.0-shapeshift.1 • Public • Published

Base64 Coder

function decode(textData: string): Uint8Array

Decodes a base64 encoded string into the binary data.

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

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

License

MIT License

Package Sidebar

Install

npm i @shapeshiftoss/ethers-base64

Weekly Downloads

1

Version

5.3.0-shapeshift.1

License

MIT

Unpacked Size

11.3 kB

Total Files

35

Last publish

Collaborators

  • 0xgomes
  • giantkin
  • 0xean
  • kmart13
  • shapeshift-ci-bot
  • tech-keepkey