{"id":13634999,"url":"https://github.com/brianloveswords/buffer-crc32","last_synced_at":"2025-12-30T00:29:28.395Z","repository":{"id":3904340,"uuid":"4992757","full_name":"brianloveswords/buffer-crc32","owner":"brianloveswords","description":"A pure javascript CRC32 algorithm that plays nice with binary data","archived":false,"fork":false,"pushed_at":"2024-02-06T17:57:12.000Z","size":40,"stargazers_count":97,"open_issues_count":7,"forks_count":31,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-16T18:16:24.539Z","etag":null,"topics":[],"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/brianloveswords.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":"2012-07-11T17:50:29.000Z","updated_at":"2025-03-10T10:41:54.000Z","dependencies_parsed_at":"2024-06-18T12:40:32.774Z","dependency_job_id":null,"html_url":"https://github.com/brianloveswords/buffer-crc32","commit_stats":{"total_commits":60,"total_committers":10,"mean_commits":6.0,"dds":0.4,"last_synced_commit":"fc79b0d9e490dee637d02107b93b88dc9c26dc69"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianloveswords%2Fbuffer-crc32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianloveswords%2Fbuffer-crc32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianloveswords%2Fbuffer-crc32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianloveswords%2Fbuffer-crc32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianloveswords","download_url":"https://codeload.github.com/brianloveswords/buffer-crc32/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249546385,"owners_count":21288983,"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-08-02T00:00:38.809Z","updated_at":"2025-12-30T00:29:28.367Z","avatar_url":"https://github.com/brianloveswords.png","language":"JavaScript","readme":"# buffer-crc32\n\n[![NPM Version](https://img.shields.io/npm/v/buffer-crc32.svg)](https://npmjs.org/package/buffer-crc32)\n[![Build Status](https://github.com/brianloveswords/buffer-crc32/actions/workflows/ci.yml/badge.svg)](https://github.com/brianloveswords/buffer-crc32/actions/workflows/ci.yml)\n\ncrc32 that works with binary data and fancy character sets, outputs\nbuffer, signed or unsigned data and has tests.\n\nDerived from the sample CRC implementation in the PNG specification: http://www.w3.org/TR/PNG/#D-CRCAppendix\n\nThis package requires Node 8+ to work.\n\n# install\n\n```\nnpm install buffer-crc32\n```\n\n# example\n\n```js\nconst crc32 = require('buffer-crc32');\n// works with buffers\nconst buf = Buffer([0x00, 0x73, 0x75, 0x70, 0x20, 0x62, 0x72, 0x6f, 0x00]);\ncrc32(buf); // -\u003e \u003cBuffer 94 5a ab 4a\u003e\n\n// has convenience methods for getting signed or unsigned ints\ncrc32.signed(buf); // -\u003e -1805997238\ncrc32.unsigned(buf); // -\u003e 2488970058\n\n// will cast to buffer if given a string, so you can\n// directly use foreign characters safely\ncrc32('自動販売機'); // -\u003e \u003cBuffer cb 03 1a c5\u003e\n\n// and works in append mode too\nconst partialCrc = crc32('hey');\nconst partialCrc = crc32(' ', partialCrc);\nconst partialCrc = crc32('sup', partialCrc);\nconst partialCrc = crc32(' ', partialCrc);\nconst finalCrc = crc32('bros', partialCrc); // -\u003e \u003cBuffer 47 fa 55 70\u003e\n```\n\n# tests\n\nThis was tested against the output of zlib's crc32 method. You can run\nthe tests with`npm test` (requires tap)\n\n# see also\n\nhttps://github.com/alexgorbatchev/node-crc, `crc.buffer.crc32` also\nsupports buffer inputs and return unsigned ints (thanks @tjholowaychuk).\n\n# license\n\nMIT/X11\n","funding_links":[],"categories":["data structures and algorithms"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianloveswords%2Fbuffer-crc32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianloveswords%2Fbuffer-crc32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianloveswords%2Fbuffer-crc32/lists"}