{"id":28304087,"url":"https://github.com/csimi/chonker","last_synced_at":"2025-10-11T20:08:53.962Z","repository":{"id":57198206,"uuid":"460864360","full_name":"csimi/chonker","owner":"csimi","description":"Creates chonks from your chunks","archived":false,"fork":false,"pushed_at":"2022-02-18T14:04:52.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T03:57:35.567Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csimi.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}},"created_at":"2022-02-18T13:30:16.000Z","updated_at":"2022-02-18T13:55:53.000Z","dependencies_parsed_at":"2022-09-16T13:10:53.312Z","dependency_job_id":null,"html_url":"https://github.com/csimi/chonker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/csimi/chonker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimi%2Fchonker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimi%2Fchonker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimi%2Fchonker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimi%2Fchonker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csimi","download_url":"https://codeload.github.com/csimi/chonker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimi%2Fchonker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008580,"owners_count":26084480,"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-11T02:00:06.511Z","response_time":55,"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":"2025-05-24T00:12:03.456Z","updated_at":"2025-10-11T20:08:53.957Z","avatar_url":"https://github.com/csimi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://img.shields.io/npm/v/chonker.svg?logo=npm)](https://www.npmjs.com/package/chonker)\n[![build status](https://github.com/csimi/chonker/workflows/build/badge.svg)](https://github.com/csimi/chonker/actions)\n[![codecov](https://codecov.io/gh/csimi/chonker/branch/master/graph/badge.svg)](https://codecov.io/gh/csimi/chonker)\n\n# About\n\nChonks your chunks into complete strings with a configurable separator character.\n\n# Usage\n\nInstall using npm:\n\n```\n$ npm install chonker\n```\n\n## EventChonker\n\n```\nconst { deepStrictEqual } = require('assert');\nconst { EventChonker } = require('chonker');\n\nconst data = [];\nconst chonker = new EventChonker('\\0');\nchonker.on('data', data.push.bind(data));\n\nchonker.write('fo');\nchonker.write('o\\0bar\\0');\n\ndeepStrictEqual(data, [\n\t'foo',\n\t'bar',\n]);\n```\n\n## StreamChonker\n\n```\nconst { deepStrictEqual } = require('assert');\nconst { PassThrough } = require('stream');\nconst { StreamChonker } = require('chonker');\n\nconst data = [];\nconst chonker = new StreamChonker('|');\n\nconst source = new PassThrough();\nsource.pipe(chonker);\nchonker.on('data', data.push.bind(data));\n\nsource.write('fo');\nsource.write('o|bar|');\n\ndeepStrictEqual(data, [\n\tBuffer.from('foo'),\n\tBuffer.from('bar'),\n]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsimi%2Fchonker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsimi%2Fchonker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsimi%2Fchonker/lists"}