Socket
Socket
Sign inDemoInstall

@aws-sdk/util-base64-node

Package Overview
Dependencies
Maintainers
5
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/util-base64-node

A Node.JS Base64 <-> UInt8Array converter


Version published
Maintainers
5
Created

What is @aws-sdk/util-base64-node?

The @aws-sdk/util-base64-node package is designed for encoding and decoding strings or data using the Base64 encoding scheme specifically in Node.js environments. This is particularly useful when dealing with web data or APIs that require Base64-encoded strings.

What are @aws-sdk/util-base64-node's main functionalities?

Base64 Encoding

This feature allows you to encode plain text into Base64 format. It's useful for encoding data that needs to be safely transmitted over media that are designed to deal with textual data.

const { toBase64 } = require('@aws-sdk/util-base64-node');
const encodedData = toBase64('Hello World');
console.log(encodedData);

Base64 Decoding

This feature enables you to decode Base64 encoded data back into its original string format. It's essential for retrieving the original data from a Base64 encoded string received from web sources or APIs.

const { fromBase64 } = require('@aws-sdk/util-base64-node');
const decodedData = fromBase64('SGVsbG8gV29ybGQ=');
console.log(decodedData);

Other packages similar to @aws-sdk/util-base64-node

FAQs

Package last updated on 10 Nov 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc