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

abab

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abab

WHATWG spec-compliant implementations of window.atob and window.btoa.

  • 2.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10M
decreased by-43.92%
Maintainers
1
Weekly downloads
 
Created

What is abab?

The abab npm package is a utility that provides Base64 encoding and decoding as well as window.atob and window.btoa polyfills for Node.js. It is designed to mimic the behavior of these methods in the web browser environment.

What are abab's main functionalities?

Base64 Encoding

This feature allows you to encode a string to Base64. The provided code sample demonstrates how to encode the string 'Hello, World!' using the btoa function.

"use strict";
const abab = require('abab');
let encodedData = abab.btoa('Hello, World!');
console.log(encodedData); // Outputs: SGVsbG8sIFdvcmxkIQ==

Base64 Decoding

This feature allows you to decode a Base64 encoded string. The provided code sample demonstrates how to decode the string 'SGVsbG8sIFdvcmxkIQ==' using the atob function.

"use strict";
const abab = require('abab');
let decodedData = abab.atob('SGVsbG8sIFdvcmxkIQ==');
console.log(decodedData); // Outputs: Hello, World!

Other packages similar to abab

Keywords

FAQs

Package last updated on 13 Nov 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