{"id":15646451,"url":"https://github.com/martinheidegger/uuid-b32","last_synced_at":"2025-03-29T23:17:16.478Z","repository":{"id":57389324,"uuid":"438486295","full_name":"martinheidegger/uuid-b32","owner":"martinheidegger","description":"Convert uuid to and from base32 strings","archived":false,"fork":false,"pushed_at":"2021-12-15T04:02:38.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T15:48:33.073Z","etag":null,"topics":["base32","user-friendly","uuid"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/martinheidegger.png","metadata":{"files":{"readme":"readme.md","changelog":null,"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":"2021-12-15T03:49:18.000Z","updated_at":"2022-01-05T06:42:57.000Z","dependencies_parsed_at":"2022-08-26T06:22:42.613Z","dependency_job_id":null,"html_url":"https://github.com/martinheidegger/uuid-b32","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinheidegger%2Fuuid-b32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinheidegger%2Fuuid-b32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinheidegger%2Fuuid-b32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinheidegger%2Fuuid-b32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martinheidegger","download_url":"https://codeload.github.com/martinheidegger/uuid-b32/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246254149,"owners_count":20747949,"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":["base32","user-friendly","uuid"],"created_at":"2024-10-03T12:12:57.811Z","updated_at":"2025-03-29T23:17:16.443Z","avatar_url":"https://github.com/martinheidegger.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convert uuid to and from base32\n\nUUID's for legacy reasons are usually encoded as hex strings like: `5b9e4740-5d4c-11ec-a260-8f8d5ea1937c`.\nThis encoding is quite long and not very human friendly. Using this util you can convert them using\n`base32` encoding, which looks like this `BEF4EG2X9G8YS8K0HY6NX8CKFG`.\n\n## JavaScript API\n\n```javascript\nconst { encode, decode } = require('uuid-b32')\n\n// create a base32 encoded uuidv4\nconst uuidCrockfordEncoded = encode()\nconst uuidRFC4648Encoded = encode(null, 'RFC4648')\n\n// convert back to uuid\nconst uuid =\n    decode(uuidCrockfordEncoded) ||\n    decode(uuidRFC4648Encoded, 'RFC4648')\n\n// convert exisiting uuid to base32\nencode(uuid)\n```\n\n## Command Line Usage\n\nYou can also use it simply as a command line tool: `npx uuid-b32`\n\n```\nGenerate or convert a uuid to/from base32 encoding\n\nUsage: uuid-b32 (--uuid [uuid]) (--variant [variant]) (--b32 [uuid]) (--uuid-v1) (--uuid-v4)\n\n    --variant ....... use base32 variant, supported variants: RFC3548, RFC4648, RFC4648-HEX, Crockford (default)\n    --uuid .......... convert input uuid instead of generating new one\n    --b32 ........... convert input base32 encoded uuid to uuid\n    --uuid-v1 ....... when creating a new uuid, use uuid-v1 variant\n    --uuid-v4 ....... when creating a new uuid, use uuid-v4 variant (default)\n    -v, --version ... print the version\n    -h, --help ...... print this help\n\nCreate a base32 uuid:\n\nuuid-b32\n\nInput using stdin is supported\n\necho \u003cuuid\u003e | uuid-b32 --uuid\necho \u003cb32\u003e  | uuid-b32 --b32\n```\n\n# License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinheidegger%2Fuuid-b32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartinheidegger%2Fuuid-b32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinheidegger%2Fuuid-b32/lists"}