1.0.8 • Published 7 years ago

encode-case64 v1.0.8

Weekly downloads
3
License
ISC
Repository
github
Last release
7 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

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago