Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matthieubosquet/jwt-d
Decode JSON Web Tokens.
https://github.com/matthieubosquet/jwt-d
Last synced: about 2 months ago
JSON representation
Decode JSON Web Tokens.
- Host: GitHub
- URL: https://github.com/matthieubosquet/jwt-d
- Owner: matthieubosquet
- License: mit
- Created: 2021-03-31T13:00:14.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-10T12:33:43.000Z (over 3 years ago)
- Last Synced: 2024-01-29T09:37:34.621Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Decode JWTs
[![npm](https://img.shields.io/npm/v/jwt-d)](https://www.npmjs.com/package/jwt-d)
A small utility to decode JSON Web Tokens.
## Usage
```bash
npx jwt-d eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
```## Aliasing
Consider adding `alias jwt-d='npx jwt-d@latest'` to your shell.
That would allow you to directly invoke the latest version of `jwt-d` via:
```bash
jwt-d eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.
```## Note
It also knows to decode tokens copy/pasted from firefox's dev tools.
```bash
jwt-d access_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.
jwt-d id_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.
...
```