Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @aws-sdk/util-base64-node

Index

Variables

Functions

Variables

Const BASE64_REGEX

BASE64_REGEX: RegExp = /^[A-Za-z0-9+/]*={0,2}$/

Functions

fromBase64

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

    Parameters

    • input: string

      The base-64 encoded string

    Returns Uint8Array

toBase64

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

    Parameters

    • input: Uint8Array

      The binary data to encode

    Returns string