{"id":23377956,"url":"https://github.com/beyondjs/crc32","last_synced_at":"2025-10-08T19:09:56.722Z","repository":{"id":64126102,"uuid":"572994177","full_name":"beyondjs/crc32","owner":"beyondjs","description":"A fast and efficient CRC32 (Cyclic Redundancy Check) implementation for Node.js and browser environments. This lightweight package offers optimized performance using a pre-computed lookup table, supporting both string and Buffer inputs. Ideal for projects requiring quick and reliable checksum calculations.","archived":false,"fork":false,"pushed_at":"2025-08-07T22:32:01.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-08T21:59:29.664Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/beyondjs.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}},"created_at":"2022-12-01T13:27:55.000Z","updated_at":"2025-07-19T16:36:55.000Z","dependencies_parsed_at":"2025-08-03T11:00:44.334Z","dependency_job_id":null,"html_url":"https://github.com/beyondjs/crc32","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beyondjs/crc32","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fcrc32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fcrc32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fcrc32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fcrc32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beyondjs","download_url":"https://codeload.github.com/beyondjs/crc32/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fcrc32/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000701,"owners_count":26082805,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-12-21T18:33:35.209Z","updated_at":"2025-10-08T19:09:56.707Z","avatar_url":"https://github.com/beyondjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @beyond-js/crc32\n\nA fast and efficient CRC32 (Cyclic Redundancy Check) implementation for Node.js and browser environments.\n\n## Installation\n\n```bash\nnpm install @beyond-js/crc32\n```\n\n## Usage\n\n```javascript\nconst crc32 = require('@beyond-js/crc32');\n\n// Calculate CRC32 for a string\nconst result1 = crc32('Hello, World!');\nconsole.log(result1); // Outputs a 32-bit unsigned integer\n\n// Calculate CRC32 for a Buffer\nconst buffer = Buffer.from('Hello, World!', 'utf8');\nconst result2 = crc32(buffer);\nconsole.log(result2); // Outputs the same 32-bit unsigned integer\n```\n\n## API\n\nThe module exports a single function:\n\n```javascript\nfunction crc32(input: string | Buffer): number\n```\n\n-   `input`: The input data. Can be a string or a Buffer.\n-   Returns: A 32-bit unsigned integer representing the CRC32 checksum.\n\n## Features\n\n-   Works with both strings and Buffers\n-   Optimized for performance using a pre-computed lookup table\n-   Compatible with Node.js and browser environments (when bundled)\n\n## License\n\nMIT © [[BeyondJS](https://beyondjs)]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondjs%2Fcrc32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeyondjs%2Fcrc32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondjs%2Fcrc32/lists"}