{"id":17929666,"url":"https://github.com/abi/node-chopped-stream","last_synced_at":"2026-02-16T06:05:23.665Z","repository":{"id":56051501,"uuid":"12168223","full_name":"abi/node-chopped-stream","owner":"abi","description":"Convert any stream into one that gives you data in user-defined sized chunks","archived":false,"fork":false,"pushed_at":"2013-08-17T05:20:01.000Z","size":124,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-07T01:37:43.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/abi.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":"2013-08-16T21:01:47.000Z","updated_at":"2024-12-07T19:21:58.000Z","dependencies_parsed_at":"2022-08-15T12:10:54.495Z","dependency_job_id":null,"html_url":"https://github.com/abi/node-chopped-stream","commit_stats":null,"previous_names":["abi/node-chunked-stream"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abi/node-chopped-stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abi%2Fnode-chopped-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abi%2Fnode-chopped-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abi%2Fnode-chopped-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abi%2Fnode-chopped-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abi","download_url":"https://codeload.github.com/abi/node-chopped-stream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abi%2Fnode-chopped-stream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278708074,"owners_count":26031932,"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-06T02:00:05.630Z","response_time":65,"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-10-28T21:10:00.143Z","updated_at":"2025-10-07T01:37:46.872Z","avatar_url":"https://github.com/abi.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"node-chopped-stream\n===================\n\n[![Build Status](https://travis-ci.org/abi/node-chopped-stream.png)](https://travis-ci.org/abi/node-chopped-stream)\n\nConvert any stream into one that gives you data in user-defined sized chunks.\n\n```javascript\nvar assert = require('assert')\nvar choppedStream = require('../.')\nvar fs = require('fs')\nvar path = require('path')\n\nvar numChunks = 0\nfs.createReadStream(path.join(__dirname, 'data/data.txt'))\n  .pipe(choppedStream(1000))\n  .on('data', function (chunk) {\n    numChunks++\n    if (numChunks \u003c 20) {\n      assert(chunk.length === 1000,\n             'Each chunk except for the last one should be 1000 bytes long')\n    } else {\n      assert(chunk.length === 660,\n             'Last chunk should be 660 bytes long')\n    }\n  })\n```\n\nInstall\n------------\n\n`npm install chopped-stream`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabi%2Fnode-chopped-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabi%2Fnode-chopped-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabi%2Fnode-chopped-stream/lists"}