Socket
Socket
Sign inDemoInstall

@aws-sdk/util-base64-node

Package Overview
Dependencies
3
Maintainers
5
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aws-sdk/util-base64-node

A Node.JS Base64 <-> UInt8Array converter


Version published
Weekly downloads
1.8M
decreased by-19.07%
Maintainers
5
Install size
120 kB
Created
Weekly downloads
 

Package description

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

Readme

Source

@aws-sdk/util-base64-node

NPM version NPM downloads

Deprecated package

This internal package is deprecated in favor of @aws-sdk/util-base64.

FAQs

Last updated on 11 Nov 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc