{"id":17736653,"url":"https://github.com/parro-it/ai-concat","last_synced_at":"2025-07-06T22:10:10.914Z","repository":{"id":57174772,"uuid":"111140603","full_name":"parro-it/ai-concat","owner":"parro-it","description":"Concat an async iterable into a promise","archived":false,"fork":false,"pushed_at":"2017-12-04T20:26:33.000Z","size":232,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-05T08:11:39.634Z","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/parro-it.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-17T19:03:54.000Z","updated_at":"2017-11-17T19:04:57.000Z","dependencies_parsed_at":"2022-08-29T00:10:46.843Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/ai-concat","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/parro-it%2Fai-concat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fai-concat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fai-concat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fai-concat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/ai-concat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246523847,"owners_count":20791444,"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-26T00:23:56.299Z","updated_at":"2025-03-31T19:17:12.365Z","avatar_url":"https://github.com/parro-it.png","language":"JavaScript","readme":"# ai-concat\n\n[![Travis Build Status](https://img.shields.io/travis/parro-it/ai-concat/master.svg)](http://travis-ci.org/parro-it/ai-concat)\n[![NPM downloads](https://img.shields.io/npm/dt/ai-concat.svg)](https://npmjs.org/package/ai-concat)\n\n\u003e Concat an async iterable into a promise\n\nbackground details relevant to understanding what this module does\n\n\u003e **_This module is part of\n\u003e [Async iterable fun](https://github.com/parro-it/ai-fun), a complete toolset\n\u003e of modules to work with async iterables._**\n\n## Usage\n\ndescription of the example\n\n```js\nconst aiConcat = require(\"ai-concat\");\n\nconsole.log(await concat(['1', '2', '3']));\n```\n\nThis will output\n\n```\n123\n```\n\n## API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n### concat\n\nConcatenate an async iterable that emits string.\n\n**Parameters**\n\n* `iterable` **AsyncIterable** The async iterable to concatenate\n\nReturns\n**[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**\nA promise resolving to a string that is the concatenation of all string emitted.\n\n#### concat.obj\n\nConcatenate an async iterable that emits objects.\n\n**Parameters**\n\n* `iterable` **AsyncIterable** The async iterable to concatenate\n\nReturns\n**[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**\nA promise resolving to an array containing all objects emitted.\n\n#### concat.buff\n\nConcatenate an async iterable that emits `Buffer`.\n\n**Parameters**\n\n* `iterable` **AsyncIterable** The async iterable to concatenate\n\nReturns\n**[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**\nA promise resolving to a buffer that is the concatenation of all buffers\nemitted.\n\n## Install\n\nWith [npm](https://npmjs.org/) installed, run\n\n```bash\nnpm install --save ai-concat\n```\n\n## See Also\n\n* [`noffle/common-readme`](https://github.com/noffle/common-readme)\n* [`parro-it/ai-fun`](https://github.com/parro-it/ai-fun)\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fai-concat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Fai-concat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fai-concat/lists"}