3.0.1 • Published 1 year ago

@keeex/bubble_babble v3.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@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.

3.0.1

1 year ago

3.0.0

1 year ago

2.1.12

1 year ago

2.1.13

1 year ago

2.1.10

1 year ago

2.1.8

1 year ago

2.1.11

1 year ago

2.1.7

1 year ago

2.1.6

3 years ago

2.1.5

3 years ago

2.1.4

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago