{"id":17446881,"url":"https://github.com/damonoehlman/pull-batched","last_synced_at":"2026-03-24T20:30:16.238Z","repository":{"id":57141530,"uuid":"110697142","full_name":"DamonOehlman/pull-batched","owner":"DamonOehlman","description":"pull-stream throughs for batching and separating ","archived":false,"fork":false,"pushed_at":"2018-05-19T06:55:18.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-20T00:45:25.984Z","etag":null,"topics":["pull-stream"],"latest_commit_sha":null,"homepage":null,"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/DamonOehlman.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":"2017-11-14T13:58:41.000Z","updated_at":"2018-05-19T06:55:20.000Z","dependencies_parsed_at":"2022-09-03T07:00:17.213Z","dependency_job_id":null,"html_url":"https://github.com/DamonOehlman/pull-batched","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DamonOehlman%2Fpull-batched","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DamonOehlman%2Fpull-batched/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DamonOehlman%2Fpull-batched/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DamonOehlman%2Fpull-batched/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DamonOehlman","download_url":"https://codeload.github.com/DamonOehlman/pull-batched/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239942794,"owners_count":19722336,"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":["pull-stream"],"created_at":"2024-10-17T19:03:31.208Z","updated_at":"2026-03-24T20:30:16.201Z","avatar_url":"https://github.com/DamonOehlman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pull-batched\n\nA simple [`pull-stream`](https://github.com/pull-stream/pull-stream) through that\ncan be used to batch or separate items in groups of items.\n\n[![NPM](https://nodei.co/npm/pull-batched.png)](https://nodei.co/npm/pull-batched/)\n\n[![Build Status](https://api.travis-ci.org/DamonOehlman/pull-batched.svg?branch=master)](https://travis-ci.org/DamonOehlman/pull-batched) [![Maintainability](https://api.codeclimate.com/v1/badges/93573dcd02f1f8d3380d/maintainability)](https://codeclimate.com/github/DamonOehlman/pull-batched/maintainability)\n\n## Other implementations\n\nFound after implementing this package (sigh the issues of package discoverability):\n\n* [`pull-batch`](https://github.com/pgte/pull-batch)\n\n\n## Example Usage\n\nItems can be batched using the `batch` through.\n\n```js\nconst { pull, values, log } = require('pull-stream');\nconst { batch } = require('pull-batched');\n\npull(\n  values([1, 2, 3, 4, 5, 6]),\n  batch(2),\n  log()\n);\n```\n\nWhich generates the following output:\n\n```\n[ 1, 2 ]\n[ 3, 4 ]\n[ 5, 6 ]\n```\n\nAnd separated using the `separate` through:\n\n```js\nconst { pull, values, log } = require('pull-stream');\nconst { separate } = require('pull-batched');\n\npull(\n  values([[1, 2], [3, 4], [5, 6]]),\n  separate(),\n  log()\n);\n```\n\nWhich generates the output of digits 1 - 6 on individual lines.\n\n## LICENSE\n\nThe MIT License (MIT)\n\nCopyright (c) 2018 Damon Oehlman \u003cdamon.oehlman@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamonoehlman%2Fpull-batched","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamonoehlman%2Fpull-batched","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamonoehlman%2Fpull-batched/lists"}