@haroun/b64-cli

3.0.0 • Public • Published

b64-cli Node.js CI CodeQL

Command line interface to decode/encode base64 data

Did you know that JWT are Base64 URL encoded?

The output is three Base64 strings separated by dots that can be easily passed in HTML and HTTP environments Introduction to JSON Web Tokens

You can use b64 to check the content of a JWT header/payload, or encode/decode embedded resources from your CSS,...

Install

$ npm install --global @haroun/b64-cli

If you don't want to install the package globally, you can use npx instead

$ npx @haroun/b64-cli

Usage

$ b64 --help

  Usage
    $ b64 [--encode|--decode] <string>
    $ echo <string> | b64

  Options
    -e, --encode Encode
    -d, --decode Decode

  Examples
    $ b64 --encode 'test'
    dGVzdA==

    $ b64 -e 'test'
    dGVzdA==

    $ b64 'dGVzdA=='
    test

    $ b64 --decode 'dGVzdA=='
    test

    $ echo 'dGVzdA==' | b64
    test

License

MIT © Harouna Traore

Dependencies (2)

Dev Dependencies (4)

Package Sidebar

Install

npm i @haroun/b64-cli

Weekly Downloads

5

Version

3.0.0

License

MIT

Unpacked Size

4.64 kB

Total Files

4

Last publish

Collaborators

  • haroun