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

childprocessmanager

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

childprocessmanager

ES6 JS class to spawn and manage external processes

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

childprocessmanager

ES6 JS class to spawn and manage external processes

Installation

npm install childprocessmanager --save

Usage

var childprocessmanager = require('childprocessmanager');

var lsProc = new childprocessmanager({
  processPath: "/bin/ls",
  onStdout: (data) => {
    console.log("[D] New stdout chunk:", data);
  },
  onStderr: (data) => {
    console.log("[D] New stderr chunk:", data);
  },
  onDataLine: (line) => {
    // Full line of data received (will be called as well as onStdout, recommend only using this callback)
    console.log("[D] New line of data from stdout:", line);
  },
  onClose: () => {
    console.log("[D] Process closed.");
  },
  detached: false, // set to true to let process continue to run if node closes
});

// Start process with arguments. equal to ls ./directory ../anotherdirectory
lsProc.startProc([
  './directory',
  '../anotherdirectory'
]);

// Send process data into its stdin with sendDataLine
lsProc.sendDataLine('../directorythree\n');

Keywords

FAQs

Package last updated on 23 May 2017

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