tang300encoder

1.0.4 • Public • Published

Tang300Encoder

Encode any binary data into innocent Tang Poems.

Installation

npm install --save tang300encoder

Usage

const Tang300Encoder = require("tang300encoder")
var f = new Tang300Encoder()
console.log(f.encode(Uint8Array.from([3,14,159,26])))
// 红豆生南国,单于夜遁逃。欣欣此生意,能饮一杯无
 
console.log(f.decode(f.encode(Uint8Array.from([3,14,159,26]))))
// Uint8Array [ 3, 14, 159, 26 ]

CDN Builds

UMD

To load this module directly into browsers you can use the UMD (Universal Module Definition) builds from any of the following CDNs:

Using UNPKG:

<script src="https://unpkg.com/tang300encoder@latest/bundle.js"></script>

Using jsDelivr:

<script src="https://cdn.jsdelivr.net/npm/tang300encoder@latest/bundle.js"></script>

Then you can use them directly in browsers by

var f = new Tang300Encoder()

/tang300encoder/

    Package Sidebar

    Install

    npm i tang300encoder

    Weekly Downloads

    4

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    42.4 kB

    Total Files

    4

    Last publish

    Collaborators

    • wsmlby