{"id":22221998,"url":"https://github.com/fabiospampinato/uint8-encoding","last_synced_at":"2025-07-27T16:32:11.385Z","repository":{"id":57385381,"uuid":"396067477","full_name":"fabiospampinato/uint8-encoding","owner":"fabiospampinato","description":"Uint8 encoding, a simple way to convert strings to Uint8Arrays and vice versa.","archived":false,"fork":false,"pushed_at":"2023-09-24T16:28:51.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-11T20:29:32.656Z","etag":null,"topics":["arraybuffer","encoding","uint8","uint8array"],"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/fabiospampinato.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},"funding":{"github":"fabiospampinato","custom":"https://www.paypal.me/fabiospampinato"}},"created_at":"2021-08-14T16:39:41.000Z","updated_at":"2023-12-11T16:08:59.000Z","dependencies_parsed_at":"2024-06-19T04:12:21.240Z","dependency_job_id":null,"html_url":"https://github.com/fabiospampinato/uint8-encoding","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"d7e70de450e71ad1290daaab4c5455fb091ee7c6"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fuint8-encoding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fuint8-encoding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fuint8-encoding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fuint8-encoding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/uint8-encoding/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227817017,"owners_count":17824200,"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":["arraybuffer","encoding","uint8","uint8array"],"created_at":"2024-12-02T23:16:30.340Z","updated_at":"2025-07-27T16:32:11.380Z","avatar_url":"https://github.com/fabiospampinato.png","language":"JavaScript","funding_links":["https://github.com/sponsors/fabiospampinato","https://www.paypal.me/fabiospampinato"],"categories":[],"sub_categories":[],"readme":"# Uint8 Encoding\n\nUint8 encoding, a simple way to convert strings to Uint8Arrays and vice versa.\n\nIt's just a simple wrapper around TextEncoder and TextDecoder, but it provides a cleaner API and it handles nuances like the BOM character for you.\n\n## Install\n\n```sh\nnpm install uint8-encoding\n```\n\n## Usage\n\n```ts\nimport U8 from 'uint8-encoding';\n\n// Encoding\n\nconst raw = 'Hello 😃';\nconst encoded = U8.encode ( raw );\nconsole.log ( encoded ); // =\u003e Uint8Array(10) [72, 101, 108, 108, 111,  32, 240, 159, 152, 131]\n\n// Decoding\n\nconst decoded = U8.decode ( encoded );\nconsole.log ( decoded ); // =\u003e 'Hello 😃'\n```\n\n## License\n\nMIT © Fabio Spampinato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fuint8-encoding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Fuint8-encoding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fuint8-encoding/lists"}