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

simple-child

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

simple-child

Simple child process management

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
87
increased by335%
Maintainers
1
Weekly downloads
 
Created
Source

Simple child

A real simple child process module

install:

$ npm i simple-child

usage:

var SimpleChild = require('simple-child')
var child = new SimpleChild('node ./cmd.js' /*, {options} */)

child.start(/* callback */)

child.restart(/* callback */)

child.stop(/* callback */)

it's as simple as that.

However there is scope for more...

myFunkyStream
  .pipe(new SimpleChild('node ./cmd.js').start())
  .pipe(process.stdout)

In this example it would pipe the output from myFunkyStream to the child process via process.stdin and pipe out anything, which is written to process.stdout or process.stderr inside the child to our outter process.stdout !!

License

MIT

FAQs

Package last updated on 16 Aug 2015

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