Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

process_tools

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

process_tools

A node.js binding to handle system processes.

  • 0.2.3
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

process_tools

Simple binding to wait for a process and all its children (direct or indirect). Compatible with Linux, Windows & Mac OS X.

var child_process = require('child_process'),
    process_tools = require('process_tools');

var childProcess = child_process.spawn("/path/to/complex/app", []);

childProcess.on('exit', (exitCode) => {
  console.log(`The process is terminated with code: ${exitCode}`);
  console.log(`But the app isn't closed yet, due to app's forks !`);
});

var children = process_tools.children(childProcess.pid);

process_tools.waitAll(childProcess.pid, () => {
  console.log('Wait is over!');
});

Keywords

FAQs

Package last updated on 31 Jan 2016

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