3.0.0 • Published 2 years ago

@haroun/b64-cli v3.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

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

3.0.0

2 years ago

2.1.0

3 years ago

2.0.0

5 years ago

1.1.2

5 years ago

1.1.1

6 years ago