base45-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Simple base45 (charset of Qr codes, alphanumeric mode) encoder/decoder.

Run as 'npm test' to get an idea of what it does. Accepts both utf8 and binary data (that is not valid UTF8).

typical use:

const b45 = require("base45-js");

const e = b45.encode(Buffer.from('Hello!','utf-8'))
console.log(e); // Will output %69 VD92EX0"

const d = b45.decode('%69 VD92EX0').toString()
console.log(d); // will output 'Hello!'

Readme

Keywords

none

Package Sidebar

Install

npm i base45-js

Weekly Downloads

1,994

Version

1.0.2

License

none

Unpacked Size

14.4 kB

Total Files

5

Last publish

Collaborators

  • dirkx