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

@ethersproject/base64

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/base64

Base64 coder.

  • 5.0.0-beta.122
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
881K
decreased by-9.61%
Maintainers
1
Weekly downloads
 
Created

What is @ethersproject/base64?

@ethersproject/base64 is a utility package from the ethers.js library that provides functions for encoding and decoding data in Base64 format. It is particularly useful in the context of Ethereum and blockchain development, where data often needs to be encoded or decoded for various purposes such as data storage, transmission, and smart contract interactions.

What are @ethersproject/base64's main functionalities?

Base64 Encoding

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

const { encode } = require('@ethersproject/base64');
const data = 'Hello, world!';
const encodedData = encode(data);
console.log(encodedData);

Base64 Decoding

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

const { decode } = require('@ethersproject/base64');
const encodedData = 'SGVsbG8sIHdvcmxkIQ==';
const decodedData = decode(encodedData);
console.log(decodedData);

Other packages similar to @ethersproject/base64

Keywords

FAQs

Package last updated on 10 Apr 2019

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