How to use the @aws-sdk/util-utf8-browser.toUtf8 function in @aws-sdk/util-utf8-browser

To help you get started, we’ve selected a few @aws-sdk/util-utf8-browser 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-utf8-universal / src / index.ts View on Github external
export function toUtf8(input: Uint8Array): string {
  if (isNode()) {
    return nodeToUtf8(input);
  }

  return browserToUtf8(input);
}

@aws-sdk/util-utf8-browser

A browser UTF-8 string <-> UInt8Array converter

Apache-2.0
Latest version published 1 year ago

Package Health Score

91 / 100
Full package analysis