{"id":17446017,"url":"https://github.com/jamen/pull-collect-promise","last_synced_at":"2025-04-02T11:22:45.387Z","repository":{"id":96785050,"uuid":"130506022","full_name":"jamen/pull-collect-promise","owner":"jamen","description":" Pull-stream sink that collects values into an array then returns a promise. ","archived":false,"fork":false,"pushed_at":"2018-04-21T19:33:13.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T02:24:25.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/jamen.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}},"created_at":"2018-04-21T19:32:57.000Z","updated_at":"2021-12-19T15:28:16.000Z","dependencies_parsed_at":"2023-07-14T08:18:42.416Z","dependency_job_id":null,"html_url":"https://github.com/jamen/pull-collect-promise","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-collect-promise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-collect-promise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-collect-promise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-collect-promise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/pull-collect-promise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246803172,"owners_count":20836511,"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":[],"created_at":"2024-10-17T18:20:35.561Z","updated_at":"2025-04-02T11:22:45.368Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pull-collect-promise\n\n[Pull-stream sink][1] that collects values into an array then returns a promise. allowing you to interop between pull-streams and promises. \n\n## Install\n\n```sh\nnpm i pull-collect-promise\n```\n\n## Usage\n\n### `collectPromise()`\n\nReturns a sink stream that returns a promise.\n\n```js\nconst { pull, map, values } = require('pull-stream')\nconst collectPromise = require('pull-collect-promise')\n\nconst foo = pull(\n    values([ 1, 2, 3, 4 ]),\n    map(x =\u003e x * 3),\n    collectPromise()\n)\n\nfoo.then(results =\u003e {\n    t.same(results, [ 3, 6, 9, 12 ])\n})\n```\n\n[1]: https://github.com/pull-stream/pull-stream/blob/master/docs/spec.md#sink-streams","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpull-collect-promise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fpull-collect-promise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpull-collect-promise/lists"}