1.0.3 • Published 4 years ago
recursive-encoder-decoder v1.0.3
recursive-encoder-decoder
a base64 recursive encoder and decoder.
Installation
Run the following command inside your project folder.
$ npm install recursive-encoder-decoder
Usage:
const base64 = require('recursive-encoder-decoder');
let str = "Hello world";
let encodeStr = base64.encodeRecursive(str, 10, 'ascii', false);
let decodeStr = base64.decodeRecursive(encodeStr, 10, 'ascii', false);
if(str === decodeStr){
console.log("Encoding Decoding in Recursion");
}
'10' is the no of iterations of encoding/decoding to perform on String 'str' with input/output in 'ascii' encoding (default)
'false' here is an optional parameter to not print the encoding/decoding at each stage to console.
License
MIT