{"id":22221994,"url":"https://github.com/fabiospampinato/buffer2uint8","last_synced_at":"2026-02-25T19:12:33.133Z","repository":{"id":57685194,"uuid":"479747239","full_name":"fabiospampinato/buffer2uint8","owner":"fabiospampinato","description":"A tiny function for casting a Buffer to a Uint8Array.","archived":false,"fork":false,"pushed_at":"2025-01-17T00:54:54.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T06:32:16.133Z","etag":null,"topics":["buffer","conversion","uint8array"],"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/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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"fabiospampinato","custom":"https://www.paypal.me/fabiospampinato"}},"created_at":"2022-04-09T14:17:12.000Z","updated_at":"2025-01-17T00:54:56.000Z","dependencies_parsed_at":"2025-10-13T06:32:11.586Z","dependency_job_id":"cc206f7f-6399-4ccb-9909-293fea16307a","html_url":"https://github.com/fabiospampinato/buffer2uint8","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fabiospampinato/buffer2uint8","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fbuffer2uint8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fbuffer2uint8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fbuffer2uint8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fbuffer2uint8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/buffer2uint8/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fbuffer2uint8/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29835550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T19:08:47.527Z","status":"ssl_error","status_checked_at":"2026-02-25T18:59:04.705Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["buffer","conversion","uint8array"],"created_at":"2024-12-02T23:16:29.198Z","updated_at":"2026-02-25T19:12:28.099Z","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":"# Buffer2Uint8\n\nA tiny function for casting a Buffer to a Uint8Array.\n\n## Details\n\n- The underlying ArrayBuffer is not copied, a new view into it is created.\n- While Buffer extends Uint8Array the two don't work identically, and some times you actually just want to work with the real Uint8Array.\n\n## Install\n\n```sh\nnpm install buffer2uint8\n```\n\n## Usage\n\n```ts\nimport buffer2uint8 from 'buffer2uint8';\n\n// Let's convert a Buffer to a Uint8Array\n\nconst buffer = new Buffer ( 'hello' );\nconst uint8 = buffer2uint8 ( buffer ); // =\u003e Uint8Array (5) [ 104, 101, 108, 108, 111 ]\n```\n\n## License\n\nMIT © Fabio Spampinato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fbuffer2uint8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Fbuffer2uint8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fbuffer2uint8/lists"}