New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

strong-child

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strong-child

A child process who accepts a data stream from strong-parent (who spawns me) and exposes a duplex stream to process data and send it back to the parent via the fs

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

strong-child

A module that exposes a duplex stream interface for communicating with strong-parent. This creates a simple way to receive a stream of data from the parent process via the filesystem and send it back up to the parent in the same way.

install

npm i strong-child

Usage

See [strong-parent] for the parent process usage. Below is how you would create a child process.

var strongChild = require('strong-child');
var jsonStream = require('json-stream');
var someExpensiveObjectTransform = require('./transform');

var duplex = strongChild();

//
// Receive some newline delimited JSON, transform it and send it back to the
// parent
//
duplex
  .pipe(jsonStream())
  .pipe(someExpensiveObjectTransform())
  .pipe(duplex);


Tests

Tests found in strong-parent

License

MIT

Keywords

child

FAQs

Package last updated on 13 Jun 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