How to use @aws-sdk/util-base64-node - 2 common examples

To help you get started, we’ve selected a few @aws-sdk/util-base64-node examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-sdk-js-v3 / packages / util-base64-universal / src / index.ts View on Github external
export function fromBase64(input: string): Uint8Array {
  if (isNode()) {
    return nodeFromBase64(input);
  }

  return browserFromBase64(input);
}
github aws / aws-sdk-js-v3 / packages / util-base64-universal / src / index.ts View on Github external
export function toBase64(input: Uint8Array): string {
  if (isNode()) {
    return nodeToBase64(input);
  }

  return browserToBase64(input);
}

@aws-sdk/util-base64-node

A Node.JS Base64 <-> UInt8Array converter

Apache-2.0
Latest version published 2 years ago

Package Health Score

72 / 100
Full package analysis

Similar packages