{"id":20596980,"url":"https://github.com/tradle/urlsafe-base64","last_synced_at":"2025-10-20T12:09:48.657Z","repository":{"id":57167476,"uuid":"451947858","full_name":"tradle/urlsafe-base64","owner":"tradle","description":"This library de-/encodes urlsafe base64 strings.","archived":false,"fork":false,"pushed_at":"2022-03-29T16:21:25.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T00:53:04.423Z","etag":null,"topics":["base64","urlsafe","urlsafe-base64"],"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/tradle.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":"2022-01-25T16:10:07.000Z","updated_at":"2022-01-25T16:14:29.000Z","dependencies_parsed_at":"2022-08-30T15:21:53.292Z","dependency_job_id":null,"html_url":"https://github.com/tradle/urlsafe-base64","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Furlsafe-base64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Furlsafe-base64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Furlsafe-base64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Furlsafe-base64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tradle","download_url":"https://codeload.github.com/tradle/urlsafe-base64/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242231440,"owners_count":20093636,"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":["base64","urlsafe","urlsafe-base64"],"created_at":"2024-11-16T08:19:45.078Z","updated_at":"2025-10-20T12:09:43.603Z","avatar_url":"https://github.com/tradle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python compatible urlsafe base 64 codec\n\nSimilar to [urlsafe-base64](https://npmjs.com/package/urlsafe-base64) this library de-/encodes urlsafe base64 strings.\n\nWhat it does different:\n\n- Offers a `safe` and `short` variant with the `short` variant being same as `urlsafe-base64` and the `safe` variant keeping\nthe ending `=` characters making it compatible with other implementations such as python.\n- Comes with typescript definitions.\n- Uses `Buffer.from` as `new Buffer` has been deprecated for a long time.\n\n## Usage\n\n```js\nimport { short, safe } from '@tradle/urlsafe-base64'\n\n;[ short, safe ].forEach(variant =\u003e {\n  const base64Str = short.encode('hello')\n\n  const decoded = short.decode(base64Str)\n  const original = decoded.toString()\n})\n```\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradle%2Furlsafe-base64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftradle%2Furlsafe-base64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradle%2Furlsafe-base64/lists"}