@haroun/b64-cli
Command line interface to decode/encode base64 data
Last updated 8 months ago by haroun .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @haroun/b64-cli 
SYNC missed versions from official npm registry.

b64-cli Build Status

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

Current Tags

  • 2.0.0                                ...           latest (8 months ago)

3 Versions

  • 2.0.0                                ...           8 months ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 3
Last Month 4
Dependencies (2)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |