@aws-sdk/util-base64-node

  • Version 3.55.0
  • Published
  • 34.2 kB
  • 2 dependencies
  • Apache-2.0 license

Install

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

Overview

A Node.JS Base64 <-> UInt8Array converter

Index

Functions

function fromBase64

fromBase64: (input: string) => Uint8Array;
  • Converts a base-64 encoded string to a Uint8Array of bytes using Node.JS's buffer module.

    Parameter input

    The base-64 encoded string

function toBase64

toBase64: (input: Uint8Array) => string;
  • Converts a Uint8Array of binary data to a base-64 encoded string using Node.JS's buffer module.

    Parameter input

    The binary data to encode

Package Files (1)

Dependencies (2)

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-node.

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