feat(new-tool): jwt parser (#262)

* npm install jwt-decode

* added base tool structure

* added function to decode JWT and display header and payload

* use a table to display the data

* show human readable values

* added switch to toggle display of parsed values

* lint

* replaced basic package-lock.json with pnpm-lock.json

* change the icon of the tool

* simplify return

* use camelCase

* added description of the tool

* always parse the values

* use camelCase...
This commit is contained in:
bastantoine 2022-12-27 09:38:35 +01:00 committed by GitHub
parent ebb7301a98
commit acc7f0a586
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 567 additions and 0 deletions

6
pnpm-lock.yaml generated
View file

@ -42,6 +42,7 @@ specifiers:
highlight.js: ^11.6.0
jsdom: ^19.0.0
json5: ^2.2.1
jwt-decode: ^3.1.2
less: ^4.1.3
lodash: ^4.17.21
mathjs: ^10.6.4
@ -85,6 +86,7 @@ dependencies:
fuse.js: 6.6.2
highlight.js: 11.6.0
json5: 2.2.1
jwt-decode: 3.1.2
lodash: 4.17.21
mathjs: 10.6.4
mime-types: 2.1.35
@ -4838,6 +4840,10 @@ packages:
promise: 7.3.1
dev: true
/jwt-decode/3.1.2:
resolution: {integrity: sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==}
dev: false
/kind-of/6.0.3:
resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==}
engines: {node: '>=0.10.0'}