Socket
Socket
Sign inDemoInstall

@aws-sdk/util-base64-browser

Package Overview
Dependencies
1
Maintainers
7
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/util-base64-browser


Version published
Weekly downloads
1.7M
decreased by-19.75%
Maintainers
7
Install size
138 kB
Created
Weekly downloads
 

Package description

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

@aws-sdk/util-base64-browser is a utility package designed for encoding and decoding Base64 strings in browser environments. It is part of the AWS SDK for JavaScript and provides simple functions to handle Base64 operations, which are often needed for encoding binary data as text.

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

Base64 Encoding

This feature allows you to encode a string into Base64 format. The `toBase64` function takes a string input and returns its Base64 encoded version.

const { toBase64 } = require('@aws-sdk/util-base64-browser');
const input = 'Hello, World!';
const encoded = toBase64(input);
console.log(encoded); // Outputs: 'SGVsbG8sIFdvcmxkIQ=='

Base64 Decoding

This feature allows you to decode a Base64 encoded string back to its original format. The `fromBase64` function takes a Base64 encoded string and returns the decoded string.

const { fromBase64 } = require('@aws-sdk/util-base64-browser');
const encoded = 'SGVsbG8sIFdvcmxkIQ==';
const decoded = fromBase64(encoded);
console.log(decoded); // Outputs: 'Hello, World!'

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

Changelog

Source

3.22.0 (2021-07-16)

Bug Fixes

  • clients: link to Hash Interface (#2573) (bb7b3ed)
  • clients: prefix dist/ for typesVersions TS<4 (#2580) (dff5cd4)
  • codegen: fix detection of -s for generate-clients (#2588) (c989b76)
  • node-http-handler: throw meaningful errors in H2 events (#2568) (160aeba)

Features

  • clients: update clients as of 07/16/2021 (#2591) (f231e7c)
  • credential-provider-sso: support sso credential when resolving shared credential file (#2583) (9480e70)
  • postinstall-node-version-check: util to show NodeDeprecationWarning (#2585) (08c0342)

Readme

Source

@aws-sdk/util-base64-browser

NPM version NPM downloads

FAQs

Last updated on 16 Jul 2021

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc