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

@keeex/bubble_babble

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keeex/bubble_babble

Bubble Babble encoding

  • 2.1.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
12
increased by50%
Maintainers
3
Weekly downloads
 
Created
Source

@keeex/bubble_babble

Bubble Babble encoding.

Initially forked from tylorr/bubble_babble to avoid the dependency on Buffer, thus making this library work in more JavaScript environments.

Installation

Installation is done from npmjs:

npm install @keeex/bubble_babble

Usage

import {encode, decode} from "@keeex/bubble_babble/lib/bubble_babble.js";

const encoded = encode("Pineapple");
console.log(encoded); // "xigak-nyryk-humil-bosek-sonax"

const ab = decode("xesef-disof-gytuf-katof-movif-baxux");
const ascii = new TextDecoder().decode(ab);
console.log(ascii); // "1234567890"

encode() accepts input as UTF8 string, ArrayBuffer or Uint8Array. decode() returns an ArrayBuffer.

There is a secondary export @keeex/bubblebabble/web/bubble_babble.js that can be used in browser environment. It should be possible to directly import @keeex/bubble_babble but this depend on your environment/bundler.

Keywords

FAQs

Package last updated on 23 Jun 2023

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