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

b64-lite

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

b64-lite

isomorphic base64 library in 152 bytes

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
126K
increased by1.53%
Maintainers
1
Weekly downloads
 
Created

What is b64-lite?

The b64-lite npm package provides lightweight utilities for encoding and decoding base64 strings. It is designed to be a simple and efficient solution for handling base64 operations in JavaScript.

What are b64-lite's main functionalities?

Base64 Encoding

This feature allows you to encode a string into base64 format. The code sample demonstrates how to use the `encode` method from b64-lite to convert a regular string into a base64 encoded string.

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

Base64 Decoding

This feature allows you to decode a base64 encoded string back into its original form. The code sample shows how to use the `decode` method from b64-lite to convert a base64 string back to a regular string.

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

Other packages similar to b64-lite

Keywords

FAQs

Package last updated on 17 Sep 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