An opinionated human friendly JWT inspector for your terminal.
Why are we constantly using https://jwt.io/, but actually I don't know about you but personally I just new a few information. But we get overwhelmed by this poor user experience. Adding to this the data privacy... I decided that it was time to stop sharing data with 3rd party and take the controle back of my JWT. 🔥
demo-hwt.mp4
curl https://atalent-consulting.com/hwt/install.sh | bash
Actually most of the time when we want to inspect a JWT the first step is to copy it into the clipboard. So... Let's get a good use of that clipboard!
Only run:
hwt
Then from there you will receice the following response:
hwt --raw
Result:
If you need to isolate a specific claim you can use the option --claim
If you are running into some issues you can use the environment variable DEBUG
.
Example:
DEBUG=hwt hwt
Surprisingly, this CLI is made with nodejs ^^. We are open to a remake in GO ... Especially knowing since we are using pkg the file is about 50M 😬.
In order to run the code locally you can
- Install the dependencies:
npm i
- Run the test
npm test
In order to increase the understaing the Unit test has been made through a small framework from scratch leveraging yaml.
Each test are isolated by folder in tests/fixtures
Run the tests
npm test
Run the tests (Watch mode)
npm run test:watch
- @olivierodo - 🇫🇷