{"id":19013000,"url":"https://github.com/archiverjs/node-crc32-stream","last_synced_at":"2025-05-16T03:03:17.632Z","repository":{"id":15533155,"uuid":"18267799","full_name":"archiverjs/node-crc32-stream","owner":"archiverjs","description":"a streaming CRC32 checksumer (now with deflate support)","archived":false,"fork":false,"pushed_at":"2025-05-01T18:22:09.000Z","size":192,"stargazers_count":33,"open_issues_count":9,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-14T05:26:28.308Z","etag":null,"topics":["crc32","javascript","nodejs","stream"],"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/archiverjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2014-03-30T16:13:03.000Z","updated_at":"2025-04-23T23:43:26.000Z","dependencies_parsed_at":"2023-01-13T18:28:25.581Z","dependency_job_id":"88376edb-60ac-45b3-9a4f-6fc4f194156e","html_url":"https://github.com/archiverjs/node-crc32-stream","commit_stats":{"total_commits":154,"total_committers":10,"mean_commits":15.4,"dds":0.4155844155844156,"last_synced_commit":"3f0836849fc469da27d1c42a161a686d0ac107c1"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archiverjs%2Fnode-crc32-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archiverjs%2Fnode-crc32-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archiverjs%2Fnode-crc32-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archiverjs%2Fnode-crc32-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archiverjs","download_url":"https://codeload.github.com/archiverjs/node-crc32-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459083,"owners_count":22074604,"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":["crc32","javascript","nodejs","stream"],"created_at":"2024-11-08T19:21:14.862Z","updated_at":"2025-05-16T03:03:12.620Z","avatar_url":"https://github.com/archiverjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRC32 Stream\n\ncrc32-stream is a streaming CRC32 checksumer. It uses the [crc](https://www.npmjs.org/package/crc) module behind the scenes to reliably handle binary data and fancy character sets. Data is passed through untouched.\n\n### Install\n\n```bash\nnpm install crc32-stream --save\n```\n\nYou can also use `npm install https://github.com/archiverjs/node-crc32-stream/archive/master.tar.gz` to test upcoming versions.\n\n### Usage\n\n#### CRC32Stream\n\nInherits [Transform Stream](http://nodejs.org/api/stream.html#stream_class_stream_transform) options and methods.\n\n```js\nimport { CRC32Stream } from \"crc32-stream\";\n\nconst source = fs.createReadStream(\"file.txt\");\nconst checksum = new CRC32Stream();\n\nchecksum.on(\"end\", function (err) {\n  // do something with checksum.digest() here\n});\n\n// either pipe it\nsource.pipe(checksum);\n\n// or write it\nchecksum.write(\"string\");\nchecksum.end();\n```\n\n#### DeflateCRC32Stream\n\nInherits [zlib.DeflateRaw](http://nodejs.org/api/zlib.html#zlib_class_zlib_deflateraw) options and methods.\n\n```js\nimport { DeflateCRC32Stream } from \"crc32-stream\";\n\nconst source = fs.createReadStream(\"file.txt\");\nconst checksum = new DeflateCRC32Stream();\n\nchecksum.on(\"end\", function (err) {\n  // do something with checksum.digest() here\n});\n\n// either pipe it\nsource.pipe(checksum);\n\n// or write it\nchecksum.write(\"string\");\nchecksum.end();\n```\n\n### Instance API\n\n#### digest()\n\nReturns the checksum digest in unsigned form.\n\n#### hex()\n\nReturns the hexadecimal representation of the checksum digest. (ie E81722F0)\n\n#### size(compressed)\n\nReturns the raw size/length of passed-through data.\n\nIf `compressed` is `true`, it returns compressed length instead. (DeflateCRC32Stream)\n\n## Things of Interest\n\n- [Changelog](https://github.com/archiverjs/node-crc32-stream/releases)\n- [Contributing](https://github.com/archiverjs/node-crc32-stream/blob/master/CONTRIBUTING.md)\n- [MIT License](https://github.com/archiverjs/node-crc32-stream/blob/master/LICENSE-MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchiverjs%2Fnode-crc32-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchiverjs%2Fnode-crc32-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchiverjs%2Fnode-crc32-stream/lists"}