{"id":17736635,"url":"https://github.com/parro-it/ai-decode","last_synced_at":"2025-03-31T19:17:10.547Z","repository":{"id":57174744,"uuid":"113360909","full_name":"parro-it/ai-decode","owner":"parro-it","description":"Decode a Buffer async iterable into a String async iterable.","archived":false,"fork":false,"pushed_at":"2017-12-06T20:47:30.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-12T23:15:48.762Z","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-12-06T19:53:31.000Z","updated_at":"2017-12-06T19:54:40.000Z","dependencies_parsed_at":"2022-08-29T00:10:39.018Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/ai-decode","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fai-decode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fai-decode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fai-decode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fai-decode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/ai-decode/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:48.572Z","updated_at":"2025-03-31T19:17:10.515Z","avatar_url":"https://github.com/parro-it.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ai-decode\n\n[![Travis Build Status](https://img.shields.io/travis/parro-it/ai-decode/master.svg)](http://travis-ci.org/parro-it/ai-decode)\n[![NPM downloads](https://img.shields.io/npm/dt/ai-decode.svg)](https://npmjs.org/package/ai-decode)\n\n\u003e Decode a Buffer async iterable into a String async iterable.\n\u003e\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\nimport aiDecode from 'ai-decode';\n\nfor (const item of aiDecode()) {\n  yield item;\n};\n```\n\nThis will output\n\n```\n\n```\n\n## API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n### aiDecode\n\nDecode a Buffer async iterable into a String async iterable.\n\n**Parameters**\n\n-   `iterable` **AsyncIterable** The source iterable to decode. It must emit Buffer instances\n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The encoding to use for the conversion. Default to 'utf8' (optional, default `\"utf8\"`)\n\nReturns **AsyncIterable** An async iterable that iterates over the decode String s\n\n## Install\n\nWith [npm](https://npmjs.org/) installed, run\n\n```bash\nnpm install --save ai-decode\n```\n\n## See Also\n\n-   [`parro-it/ai-fun`](https://github.com/parro-it/ai-fun) - A collection of modules to easy deal with async iterables.\n\n-   [`noffle/common-readme`](https://github.com/noffle/common-readme) - « a common readme for node ».\n\n## License\n\nMIT Licensed\n© 2017 Andrea Parodi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fai-decode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Fai-decode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fai-decode/lists"}