{"id":46327132,"url":"https://github.com/ghosind/node-encoding","last_synced_at":"2026-03-04T16:33:00.967Z","repository":{"id":330152501,"uuid":"614177311","full_name":"ghosind/node-encoding","owner":"ghosind","description":"Data encoding functions for Node.js.","archived":false,"fork":false,"pushed_at":"2025-12-25T03:32:07.000Z","size":141,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T04:25:11.962Z","etag":null,"topics":["base32","data-encoding","javascript","nodejs","npm-package","typescript"],"latest_commit_sha":null,"homepage":"","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/ghosind.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-03-15T03:39:32.000Z","updated_at":"2025-12-23T14:43:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ghosind/node-encoding","commit_stats":null,"previous_names":["ghosind/node-encoding"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ghosind/node-encoding","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghosind%2Fnode-encoding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghosind%2Fnode-encoding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghosind%2Fnode-encoding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghosind%2Fnode-encoding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghosind","download_url":"https://codeload.github.com/ghosind/node-encoding/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghosind%2Fnode-encoding/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30086451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T15:40:14.053Z","status":"ssl_error","status_checked_at":"2026-03-04T15:40:13.655Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","data-encoding","javascript","nodejs","npm-package","typescript"],"created_at":"2026-03-04T16:32:59.352Z","updated_at":"2026-03-04T16:33:00.956Z","avatar_url":"https://github.com/ghosind.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @antmind/encoding\n\n[![Latest version](https://img.shields.io/github/v/release/ghosind/node-encoding?include_prereleases)](https://github.com/ghosind/node-encoding)\n[![NPM Package](https://img.shields.io/npm/v/%40antmind%2Fencoding)](https://img.shields.io/npm/v/%40antmind%2Fencoding)\n[![Github Actions build](https://img.shields.io/github/actions/workflow/status/ghosind/node-encoding/test.yaml?branch=main)](https://github.com/ghosind/node-encoding)\n[![codecov](https://codecov.io/gh/ghosind/node-encoding/branch/main/graph/badge.svg)](https://codecov.io/gh/ghosind/node-encoding)\n[![License](https://img.shields.io/github/license/ghosind/node-encoding)](https://github.com/ghosind/node-encoding)\n\nLightweight data encoding utilities for Node.js and browsers.\n\n## Features\n\n- Base32 encoding/decoding.\n- Node.js and browser compatible.\n\n## Installation\n\nInstall from npm:\n\n```bash\nnpm install @antmind/encoding\n```\n\n## Quick Start\n\nEncode and decode Base32 strings with default settings:\n\n```js\nimport { base32 } from '@antmind/encoding';\n\n// encode\nconst encoded = base32.encode('foo');\n// =\u003e 'MZXW6==='\n\n// decode\nconst decoded = base32.decode('MZXW6===');\n// =\u003e 'foo'\n```\n\nYou can also create a custom Base32 encoding instance with your own alphabet and padding character:\n\n```js\nimport { Base32Encoding } from '@antmind/encoding';\n\nconst customBase32 = new Base32Encoding({\n  encoder: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567', // standard Base32 alphabet\n  padChar: '*', // custom padding character\n});\n\nconst encoded = customBase32.encode('foo');\n// =\u003e 'MZXW6***'\n\n// or method override\nconst encoded2 = customBase32.encode('foo', { padChar: '+' });\n// =\u003e 'MZXW6+++'\n```\n\n## API\n\n- `new Base32Encoding(options?: Base32Options)`\n  - `options.encoder?: string` — 32-character alphabet string. Defaults to `Base32StdEncoder`.\n  - `options.padChar?: string` — padding character (set to empty string `''` to disable padding). Defaults to `'='`.\n\n- `encode(data: string, options?: Base32Options)` — Encodes `data` to a Base32 string. Accepts the same `options` as the constructor to override encoder/pad for a single call.\n\n- `decode(str: string, options?: Base32Options)` — Decodes a Base32 `str` to the original string. Accepts the same `options` to override encoder/pad.\n\n## Tests\n\nRun the test suite with:\n\n```bash\nnpm test\n```\n\n## Contributing\n\nContributions and bug reports are welcome. Please open issues or pull requests.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghosind%2Fnode-encoding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghosind%2Fnode-encoding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghosind%2Fnode-encoding/lists"}