1.0.8 ā€¢ Published 5 years ago

encode-case64 v1.0.8

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

encode-case64 šŸ˜„

simple string base64 encoder module for node.js.

Install

$ npm install encode-case64 --save

Usage

// commonjs style
require('encode-case64');

// es6 style
import "encode-case64";

const str = "Your String."

encode/decode string to upper/lower case with base64

āš” encrypt to Lowercase: šŸ‘
const encodedLower = str.encodeToLowerCase();
output : "-w-w91ci-b-td-h-jpbmcu"

āš” encrypt to Uppercase: šŸ‘
const encodedUpper = str.encodeToUpperCase();
output : "WW91-C-IBT-DHJ-P-B-M-C-U"

āš” decrypt from Lowercase/Uppercase: šŸ‘
const your-original-string = encodedUpper.decodeFromCase64();
output : "Your String."

convert/de-convert string to upper/lower case (without encoding)

āš” convert to Lowercase: šŸ‘
const lowerStr = str.convertToLowerCase();
output : "-your -string."

āš” convert to Uppercase: šŸ‘
const upperStr = str.convertToUpperCase();
output : "Y-O-U-R S-T-R-I-N-G."

āš” convert from Lowercase/Uppercase: šŸ‘
const your-original-string = upperStr.convertFromCase64();
output : "Your String."

Test

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test
1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago