1.1.0 • Published 4 years ago

nodejs-base64-encode v1.1.0

Weekly downloads
884
License
MIT
Repository
github
Last release
4 years ago

Simple Node Js Package For Encode Decode a Given String

NPM

Installation

$ npm install nodejs-base64-encode

Examples

For Encode a String

const encode = require('nodejs-base64-encode');

console.log(encode.encode('npm world', 'base64'));

prints: bnBtIHdvcmxk

For Decode a String

const encode = require('nodejs-base64-encode');

console.log(encode.decode('bnBtIHdvcmxk', 'base64'));

prints: npm world

The possible encoding types are

  • ascii
  • utf8
  • ucs2
  • base64
  • binary
  • hex
  • utf8

This Package Is Under The MIT License