1.0.5 • Published 4 years ago

nodejs-base64-converter v1.0.5

Weekly downloads
428
License
ISC
Repository
github
Last release
4 years ago

base64 encode/decode methods in nodejs

Build Status npm version

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