Skip to content

Base45 (for QR and Aztec barcode alphanumeric mode) library for Javascript/JS/node

Notifications You must be signed in to change notification settings

ehn-dcc-development/base45-js

This branch is 2 commits ahead of, 3 commits behind dirkx/base45-js:main.

Folders and files

NameName
Last commit message
Last commit date
Apr 2, 2021
Apr 2, 2021
Apr 2, 2021
Mar 31, 2021
Mar 31, 2021
Mar 31, 2021
Apr 2, 2021
Mar 31, 2021
Mar 31, 2021
Apr 2, 2021

Repository files navigation

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

Run as 'npm test' to get an idea of what it does.

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')
console.log(d); // will output '[72, 101, 108, 108, 111, 33, 33]'

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

About

Base45 (for QR and Aztec barcode alphanumeric mode) library for Javascript/JS/node

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%