{"id":22221901,"url":"https://github.com/fabiospampinato/int32-encoding","last_synced_at":"2026-02-16T01:47:21.035Z","repository":{"id":186798166,"uuid":"675810286","full_name":"fabiospampinato/int32-encoding","owner":"fabiospampinato","description":"Int32 encoding, a simple way to convert 32-bit signed integers to Uint8Arrays, and vice versa.","archived":false,"fork":false,"pushed_at":"2025-01-15T02:28:42.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T06:32:15.769Z","etag":null,"topics":["encoding","int32","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":"2023-08-07T19:24:54.000Z","updated_at":"2025-01-15T02:28:44.000Z","dependencies_parsed_at":"2025-01-15T03:31:45.450Z","dependency_job_id":"7d02b283-6c4d-4996-8d2b-cdb69634cc00","html_url":"https://github.com/fabiospampinato/int32-encoding","commit_stats":null,"previous_names":["fabiospampinato/int32-encoding"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fabiospampinato/int32-encoding","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fint32-encoding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fint32-encoding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fint32-encoding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fint32-encoding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/int32-encoding/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fint32-encoding/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29498345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T01:11:49.942Z","status":"ssl_error","status_checked_at":"2026-02-16T01:07:16.834Z","response_time":118,"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":["encoding","int32","uint8array"],"created_at":"2024-12-02T23:16:05.159Z","updated_at":"2026-02-16T01:47:21.014Z","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":"# Int32 Encoding\n\nInt32 encoding, a simple way to convert 32-bit signed integers to Uint8Arrays, and vice versa.\n\nThe produced Uint8Array will always be 4-bytes long.\n\n## Install\n\n```sh\nnpm install int32-encoding\n```\n\n## Usage\n\n```ts\nimport Int32 from 'int32-encoding';\n\n{ // It works with positive 32-bit numbers\n  const encoded = Int32.encode ( 1234567890 ); // =\u003e Uint8Array(4) [73, 150, 2, 210]\n  const decoded = Int32.decode ( new Uint8Array ([ 73, 150, 2, 210 ]) ); // =\u003e 1234567890\n}\n\n{ // It works with negative 32-bit numbers\n  const encoded = Int32.encode ( -1234567890 ); // =\u003e Uint8Array(4) [182, 105, 253, 46]\n  const decoded = Int32.decode ( new Uint8Array ([ 182, 105, 253, 46 ]) ); // =\u003e -1234567890\n}\n```\n\n## License\n\nMIT © Fabio Spampinato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fint32-encoding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Fint32-encoding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fint32-encoding/lists"}