New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

async-iterators-kit

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-iterators-kit

Wrappers around Node.js ReadableStream, Readline and ChildProcess that implement AsyncIterableIterator interface

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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
  }

Keywords

FAQs

Package last updated on 01 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc