{"id":23722654,"url":"https://github.com/remko/buffering-object-stream","last_synced_at":"2025-08-22T23:30:27.463Z","repository":{"id":57191034,"uuid":"41763597","full_name":"remko/buffering-object-stream","owner":"remko","description":"Buffer Node Object Streams","archived":false,"fork":false,"pushed_at":"2015-11-24T19:03:53.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T02:47:43.049Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-01T21:11:22.000Z","updated_at":"2015-09-01T21:13:13.000Z","dependencies_parsed_at":"2022-09-16T11:10:49.819Z","dependency_job_id":null,"html_url":"https://github.com/remko/buffering-object-stream","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/remko/buffering-object-stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remko%2Fbuffering-object-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remko%2Fbuffering-object-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remko%2Fbuffering-object-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remko%2Fbuffering-object-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remko","download_url":"https://codeload.github.com/remko/buffering-object-stream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remko%2Fbuffering-object-stream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271716943,"owners_count":24808589,"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-08-22T02:00:08.480Z","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-12-30T23:55:15.513Z","updated_at":"2025-08-22T23:30:27.444Z","avatar_url":"https://github.com/remko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [buffering-object-stream: Buffer Node Object Streams](https://el-tramo.be/buffering-object-stream)\n\nAdding a buffering input stream in your pipeline will collect a given number of objects,\nand send them through as an array to the next stage. This is useful if you have a stream\nsource that emits objects, and you want to batch them together before sending them to a\ndatabase.\n\n\n## Installation\n\n    npm install buffering-object-stream --save\n\n## Usage\n\nFor example:\n\n    var through = require(\"through2\");\n    vor bufferingObjectStream = require(\"buffering-object-stream\");\n\n    createSomeObjectStream()\n      .pipe(bufferingObjectStream(4))\n      .pipe(through.obj(function (objects, enc, cb) {\n        console.log(\"Got objects: \", objects);\n        cb();\n      });\n\nIf `createObjectStream` sends out 10 objects (e.g. strings), this will print\nout something like:\n    \n    Got objects: [\"object1\", \"object2\", \"object3\", \"object4\"]\n    Got objects: [\"object5\", \"object6\", \"object7\", \"object8\"]\n    Got objects: [\"object9\", \"object10\"]\n\n\n## API\n\n### `bufferingObjectSream(bufferSize)`\n\n- **`bufferSize`** - *integer*  \n    The number of objects to buffer before emitting.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremko%2Fbuffering-object-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremko%2Fbuffering-object-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremko%2Fbuffering-object-stream/lists"}