Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

Latest commit

 

History

History
45 lines (31 loc) · 680 Bytes

readme.md

File metadata and controls

45 lines (31 loc) · 680 Bytes

nodejs-base64-cli

A simply cli for encode and decode base64

Install this globally and you'll have access to the base64 command anywhere on your system.

npm install -g nodejs-base64-cli

Shell

utf-8 to base64

base64 encode [string]

Example:

base64 encode "https://www.npmjs.com/package/nodejs-base64-cli"

will return

aHR0cHM6Ly93d3cubnBtanMuY29tL3BhY2thZ2Uvbm9kZWpzLWJhc2U2NC1jbGk=

base64 to utf-8

base64 decode [string]

Example:

base64 encode "aHR0cHM6Ly93d3cubnBtanMuY29tL3BhY2thZ2Uvbm9kZWpzLWJhc2U2NC1jbGk="

will return

https://www.npmjs.com/package/nodejs-base64-cli