@aws-sdk/util-base64-browser

  • Version 3.170.0
  • Published
  • 37.1 kB
  • 1 dependency
  • Apache-2.0 license

Install

npm i @aws-sdk/util-base64-browser
yarn add @aws-sdk/util-base64-browser
pnpm add @aws-sdk/util-base64-browser

Overview

A pure JS Base64 <-> UInt8Array converter

Index

Functions

function fromBase64

fromBase64: (input: string) => Uint8Array;
  • Converts a base-64 encoded string to a Uint8Array of bytes.

    Parameter input

    The base-64 encoded string

    See Also

    • https://tools.ietf.org/html/rfc4648#section-4

function toBase64

toBase64: (input: Uint8Array) => string;
  • Converts a Uint8Array of binary data to a base-64 encoded string.

    Parameter input

    The binary data to encode

    See Also

    • https://tools.ietf.org/html/rfc4648#section-4

Package Files (1)

Dependencies (1)

Dev Dependencies (7)

Peer Dependencies (0)

No peer dependencies.

Badge

To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@aws-sdk/util-base64-browser.

  • Markdown
    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@aws-sdk/util-base64-browser)
  • HTML
    <a href="https://www.jsdocs.io/package/@aws-sdk/util-base64-browser"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>