uint8-to-b64
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

ArrayBuffer to Base64 string and back

Isomorphic helpers to encode and decode Uint8Array to Base64 string and back. Works in browser and Node.js.

API:

encode(ab: Uint8Array): string;
decode(str: string): Uint8Array;

Contents:

  • index.js — Node.js version
  • browser.js — browser version

/uint8-to-b64/

    Package Sidebar

    Install

    npm i uint8-to-b64

    Weekly Downloads

    1,633

    Version

    1.0.2

    License

    none

    Unpacked Size

    1.38 kB

    Total Files

    5

    Last publish

    Collaborators

    • streamich