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

Base64

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Base64

Base64 encoding and decoding

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
486K
decreased by-7.3%
Maintainers
2
Weekly downloads
 
Created

What is Base64?

The Base64 npm package provides utilities for encoding and decoding data in Base64 format. This is useful for data transmission, storage, and processing where binary data needs to be represented in an ASCII string format.

What are Base64's main functionalities?

Encoding

This feature allows you to encode a string into Base64 format. The example encodes the string 'Hello, World!' into its Base64 representation.

const base64 = require('base64');
const encoded = base64.encode('Hello, World!');
console.log(encoded); // Outputs: 'SGVsbG8sIFdvcmxkIQ=='

Decoding

This feature allows you to decode a Base64 encoded string back into its original format. The example decodes the Base64 string 'SGVsbG8sIFdvcmxkIQ==' back to 'Hello, World!'.

const base64 = require('base64');
const decoded = base64.decode('SGVsbG8sIFdvcmxkIQ==');
console.log(decoded); // Outputs: 'Hello, World!'

Other packages similar to Base64

FAQs

Package last updated on 14 Jun 2016

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