devinux / node-base92

A C++ addon for nodejs supports base92 encoding and decoding.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-base92

Description

A C++ addon for nodejs supports base92 encoding and decoding.

Install

npm install -S node-base92

Usage

const fs = require('fs');
const {encode, decode} = require('node-base92');


// string
encode('Hello World') // should be ;K_$aOTbKnsM*k
// buffer
encode(fs.readFileSync('./inputFile'));
// string
decode(';K_$aOTbKnsM*k') // should be Hello World
// buffer
decode(fs.readFileSync('./inputFile'));

Thanks

thenoviceoof(https://github.com/thenoviceoof) wrote base92

License

MIT

About

A C++ addon for nodejs supports base92 encoding and decoding.

License:MIT License


Languages

Language:C 87.2%Language:JavaScript 11.3%Language:Python 1.4%