You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@aws-sdk/util-hex-encoding

Package Overview
Dependencies
Maintainers
5
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/util-hex-encoding

Converts binary buffers to and from lowercase hexadecimal encoding


Version published
Weekly downloads
4.1M
decreased by-1.16%
Maintainers
5
Install size
112 kB
Created
Weekly downloads
 

Package description

What is @aws-sdk/util-hex-encoding?

@aws-sdk/util-hex-encoding is a utility package from AWS SDK for JavaScript that provides functions to encode and decode hexadecimal strings. This can be particularly useful for handling binary data in a readable format.

What are @aws-sdk/util-hex-encoding's main functionalities?

Hex Encoding

This feature allows you to convert a Buffer or Uint8Array to a hexadecimal string. The code sample demonstrates encoding the string 'Hello, World!' into its hexadecimal representation.

const { toHex } = require('@aws-sdk/util-hex-encoding');
const buffer = Buffer.from('Hello, World!');
const hexString = toHex(buffer);
console.log(hexString); // Outputs: 48656c6c6f2c20576f726c6421

Hex Decoding

This feature allows you to convert a hexadecimal string back into a Buffer. The code sample demonstrates decoding the hexadecimal string back into the original 'Hello, World!' string.

const { fromHex } = require('@aws-sdk/util-hex-encoding');
const hexString = '48656c6c6f2c20576f726c6421';
const buffer = fromHex(hexString);
console.log(buffer.toString()); // Outputs: Hello, World!

Other packages similar to @aws-sdk/util-hex-encoding

Changelog

Source

3.374.0 (2023-07-20)

Bug Fixes

  • packages: fix migrated package imports (#4990) (d800f78)

Features

  • client-codecatalyst: This release adds support for updating and deleting spaces and projects in Amazon CodeCatalyst. It also adds support for creating, getting, and deleting source repositories in CodeCatalyst projects. (05a9f89)
  • client-connectcases: This release adds the ability to assign a case to a queue or user. (f47d6f4)
  • client-lex-models-v2: This release updates type for Channel field in SessionSpecification and UtteranceSpecification (1f77d0a)
  • client-route53resolver: This release adds support for Route 53 On Outposts, a new feature that allows customers to run Route 53 Resolver and Resolver endpoints locally on their Outposts. (8acc64c)
  • client-s3: Improve performance of S3 clients by simplifying and optimizing endpoint resolution. (72eb598)
  • client-sagemaker-featurestore-runtime: Cross account support for SageMaker Feature Store (b0593ab)
  • client-sagemaker: Cross account support for SageMaker Feature Store (e4918c1)
  • client-securitylake: Adding support for Tags on Create and Resource Tagging API. (596636d)
  • client-transcribe: Added API argument --toxicity-detection to startTranscriptionJob API, which allows users to view toxicity scores of submitted audio. (9e7552a)
  • smithy-client: update client defaults provider (830cb06)

Readme

Source

@aws-sdk/util-hex-encoding

NPM version NPM downloads

FAQs

Package last updated on 20 Jul 2023

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc