Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/util-utf8-browser

Package Overview
Dependencies
Maintainers
5
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/util-utf8-browser

A browser UTF-8 string <-> UInt8Array converter

  • 3.168.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.4M
decreased by-18.23%
Maintainers
5
Weekly downloads
 
Created

What is @aws-sdk/util-utf8-browser?

The @aws-sdk/util-utf8-browser package is designed for encoding and decoding UTF-8 content in web browsers. It provides utilities to convert between string data and Uint8Array binary format, facilitating the handling of text data in web applications that interact with AWS services or any other use cases requiring UTF-8 encoding/decoding.

What are @aws-sdk/util-utf8-browser's main functionalities?

UTF-8 Encoding

This feature allows you to encode a JavaScript string into a Uint8Array using UTF-8 encoding. It's useful for preparing text data for binary-safe transmission or storage.

const { fromUtf8 } = require('@aws-sdk/util-utf8-browser');
const encodedData = fromUtf8('Hello, world!');

UTF-8 Decoding

This feature enables the decoding of a Uint8Array binary data back into a JavaScript string using UTF-8 decoding. It's essential for converting received binary data into a human-readable format.

const { toUtf8 } = require('@aws-sdk/util-utf8-browser');
const decodedString = toUtf8(new Uint8Array([72, 101, 108, 108, 111]));

Other packages similar to @aws-sdk/util-utf8-browser

FAQs

Package last updated on 09 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc