{"id":27243336,"url":"https://github.com/spyna/pretty-jwt","last_synced_at":"2025-06-24T07:07:59.565Z","repository":{"id":65281344,"uuid":"588881139","full_name":"Spyna/pretty-jwt","owner":"Spyna","description":"Pretty print JWTs in the command line","archived":false,"fork":false,"pushed_at":"2023-01-16T08:18:14.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T06:47:06.978Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Spyna.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-14T10:48:17.000Z","updated_at":"2023-01-14T11:52:08.000Z","dependencies_parsed_at":"2023-02-10T01:50:13.506Z","dependency_job_id":null,"html_url":"https://github.com/Spyna/pretty-jwt","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Spyna/pretty-jwt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spyna%2Fpretty-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spyna%2Fpretty-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spyna%2Fpretty-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spyna%2Fpretty-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Spyna","download_url":"https://codeload.github.com/Spyna/pretty-jwt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spyna%2Fpretty-jwt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261624959,"owners_count":23186118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-10T20:27:57.160Z","updated_at":"2025-06-24T07:07:59.542Z","avatar_url":"https://github.com/Spyna.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pretty JWT\n\n\u003e a cli to print pretty JWT\n\n\n## Usage\n\n\n```\n# Install\nnpm install -g pretty-jwt\njwp \u003cjwt\u003e\n\n# or use directly\nnpx pretty-jwt \u003cjwt\u003e\n```\n\nThe install commands provides the command `jwp` *that is for `jw`(t) `p`(rint)*\n\n\n## Examples \n\n```\njwp eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6InNweW5hIiwiaWF0IjoxNzI2MjM5MDIyfQ.2k-IPAVDXSuEVKUKIh_qNB_6SwNnA4muLbTMy5lfNYI\n\n```\n\nwill print\n\n```\n-------  PRETTY JWT ------- \n\n{\n  \"alg\": \"HS256\",\n  \"typ\": \"JWT\"\n}\n.\n{\n  \"sub\": \"1234567890\",\n  \"name\": \"spyna\",\n  \"iat\": 1726239022\n}\n```\n\n## Errors \n\nErrors are detected and printed\n\nExample \n\n```\njwp \"\u003can invalid JWT\u003e\"\n```\n\nwill print \n\n```\n ⚠️  invalid base64: \"\u003can invalid JWT\u003e\"\n\n\u003can invalid JWT\u003e\n```\n\n\n## Development \n\n## run locally \n\nStart `typescript` watching and build compiled js files into the `dist` folder with:\n\n```\nnpm run dev\n```\n\nor \n\nCompile typescript files using: \n\n```\nnpm run build\n```\n\nLaunch the compiled js with: \n\n```\nnode dist/index.js eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6InNweW5hIiwiaWF0IjoxNzI2MjM5MDIyfQ.2k-IPAVDXSuEVKUKIh_qNB_6SwNnA4muLbTMy5lfNYI\n```\n\n### install locally\n\nInstall locally with:\n\n```\nnpm run build\nnpm install -g .\n```\n\nTest the installation:\n\n```\njwp eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6InNweW5hIiwiaWF0IjoxNzI2MjM5MDIyfQ.2k-IPAVDXSuEVKUKIh_qNB_6SwNnA4muLbTMy5lfNYI\n```\n\n### Release and publish\n\n```\nnpm run build\nnpm run release\nnpm publish --dry-run\ngit push --follow-tags origin main\nnpm publish \n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyna%2Fpretty-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspyna%2Fpretty-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyna%2Fpretty-jwt/lists"}