{"id":15655441,"url":"https://github.com/linusu/base32-encode","last_synced_at":"2025-04-14T10:11:24.528Z","repository":{"id":47638279,"uuid":"66215945","full_name":"LinusU/base32-encode","owner":"LinusU","description":"Base32 encoder with support for multiple variants","archived":false,"fork":false,"pushed_at":"2023-10-25T19:45:56.000Z","size":23,"stargazers_count":24,"open_issues_count":4,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-03T12:54:13.513Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/LinusU.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-21T19:10:13.000Z","updated_at":"2024-07-21T11:56:39.000Z","dependencies_parsed_at":"2024-06-18T14:01:06.588Z","dependency_job_id":"e78c80e0-3cdd-4040-bc5a-7fdb3320ba6e","html_url":"https://github.com/LinusU/base32-encode","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":0.05882352941176472,"last_synced_commit":"b970e2ee5637d194a983cbb9801dbd54d2262b06"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fbase32-encode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fbase32-encode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fbase32-encode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fbase32-encode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/base32-encode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248860212,"owners_count":21173342,"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":"2024-10-03T12:59:14.288Z","updated_at":"2025-04-14T10:11:24.496Z","avatar_url":"https://github.com/LinusU.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Base32 Encode\n\nBase32 encoder with support for multiple variants.\n\n## Installation\n\n```sh\nnpm install --save base32-encode\n```\n\n## Usage\n\n```js\nimport base32Encode from 'base32-encode'\nconst data = new Uint8Array([0x74, 0x65, 0x73, 0x74])\n\nconsole.log(base32Encode(data, 'Crockford'))\n//=\u003e EHJQ6X0\n\nconsole.log(base32Encode(data, 'RFC4648'))\n//=\u003e ORSXG5A=\n\nconsole.log(base32Encode(data, 'RFC4648', { padding: false }))\n//=\u003e ORSXG5A\n\nconsole.log(base32Encode(data, 'RFC4648-HEX'))\n//=\u003e EHIN6T0=\n```\n\n## API\n\n### `base32Encode(data, variant[, options])`\n\n- `data` (`ArrayBuffer | Int8Array | Uint8Array | Uint8ClampedArray`, required)\n- `variant` (`'RFC3548' | 'RFC4648' | 'RFC4648-HEX' | 'Crockford'`, required)\n- `options` (`object`, optional)\n  - `padding` (`boolean`, optional) - If set, forcefully enable or disable padding. The default behavior is to follow the default of the selected variant.\n- returns `string`\n\nEncode the data in `data` into a Base32 encoded string.\n\n#### Variants\n\n- `'RFC3548'` - Alias for `'RFC4648'`\n- `'RFC4648'` - [Base32 from RFC4648](https://tools.ietf.org/html/rfc4648)\n- `'RFC4648-HEX'` - [base32hex from RFC4648](https://tools.ietf.org/html/rfc4648)\n- `'Crockford'` - [Crockford's Base32](http://www.crockford.com/wrmg/base32.html)\n\n## See also\n\n- [base32-decode](https://github.com/LinusU/base32-decode) - Base32 decoder\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fbase32-encode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusu%2Fbase32-encode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fbase32-encode/lists"}