nodejs-base64-converter
v1.0.5
Published
base64 encode/decode methods in nodejs
Downloads
6,003
Maintainers
Readme
base64 encode/decode methods in nodejs
The ultimate small js library for the base64 encode/decode conversion in Node.js.
Usage
var nodeBase64 = require('nodejs-base64-converter');
console.log(nodeBase64.encode("test text")); //dGVzdCB0ZXh0
console.log(nodeBase64.decode("dGVzdCB0ZXh0")); //test text
Other methods
nodeBase64.urlEncode(unencoded);
nodeBase64.urlDecode(encoded);
Installation
Install from command line:
npm i --save nodejs-base64-converter
Test
npm test