{"id":16811426,"url":"https://github.com/noomorph/node-async-iterators-kit","last_synced_at":"2025-10-19T11:44:27.760Z","repository":{"id":57185633,"uuid":"155697654","full_name":"noomorph/node-async-iterators-kit","owner":"noomorph","description":null,"archived":false,"fork":false,"pushed_at":"2018-11-01T11:58:34.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-17T10:53:27.191Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/noomorph.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":"2018-11-01T10:19:49.000Z","updated_at":"2018-11-01T11:58:35.000Z","dependencies_parsed_at":"2022-09-06T04:11:19.805Z","dependency_job_id":null,"html_url":"https://github.com/noomorph/node-async-iterators-kit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/noomorph/node-async-iterators-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noomorph%2Fnode-async-iterators-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noomorph%2Fnode-async-iterators-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noomorph%2Fnode-async-iterators-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noomorph%2Fnode-async-iterators-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noomorph","download_url":"https://codeload.github.com/noomorph/node-async-iterators-kit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noomorph%2Fnode-async-iterators-kit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263542605,"owners_count":23477456,"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-13T10:18:44.160Z","updated_at":"2025-10-19T11:44:27.664Z","avatar_url":"https://github.com/noomorph.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-async-iterators-kit\n\n[![npm version](https://badge.fury.io/js/async-iterators-kit.svg)](https://badge.fury.io/js/async-iterators-kit)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Build Status](https://travis-ci.org/noomorph/node-async-iterators-kit.svg?branch=master)](https://travis-ci.org/noomorph/node-async-iterators-kit)\n\n## Install\n\n```\nnpm install async-iterators-kit\n```\n\n## Use\n\nCurrently, the package provides a set of async iterators for handling readline, streams, child process stdout and timeouts:\n\n* [ChildProcessStdioAsyncIterator](lib/ChildProcessStdioAsyncIterator.ts)\n* [ReadlineAsyncIterator](lib/ReadlineAsyncIterator.ts)\n* [StreamReadlineAsyncIterator](lib/StreamReadlineAsyncIterator.ts)\n* [TimeoutAsyncIterator](lib/TimeoutAsyncIterator.ts)\n\nSee example:\n\n```javascript\n  const node = cp.spawn('node', ['-p', '2+2'], { stdio: 'pipe' });\n  const iterator = new ChildProcessStdioAsyncIterator(node, 'stdout');\n\n  for await (const line of iterator) {\n      lines.push(line); // [4]\n      break; // sends SIGTERM to the process if it has not exited yet\n  }\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoomorph%2Fnode-async-iterators-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoomorph%2Fnode-async-iterators-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoomorph%2Fnode-async-iterators-kit/lists"}