async-iterators-kit
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

node-async-iterators-kit

License: MIT Build Status

Currently, the package provides a set of async iterators for handling readline, streams, child process stdout and timeouts:

See example:

  const node = cp.spawn('node', ['-p', '2+2'], { stdio: 'pipe' });
  const iterator = new ChildProcessStdioAsyncIterator(node, 'stdout');
 
  for await (const line of iterator) {
      lines.push(line); // [4]
      break; // sends SIGTERM to the process if it has not exited yet
  }

/async-iterators-kit/

    Package Sidebar

    Install

    npm i async-iterators-kit

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    12.3 kB

    Total Files

    19

    Last publish

    Collaborators

    • noomorph