mockout

0.0.2 • Public • Published

Mocking a series of objects being sent through stdout

Build Status NPM version

Installation

sudo npm install --save mockout

NPM

Usage

// Fork a child process
var mockout = fork(require.resolve('mockout'), [], {silent: true});
 
// Start sending messages
mockout.send({event: 'connect', some: 'thing'});
 
// Check up on mockout.stdout
// ...
 
// Stop the messages
mockout.send({event: 'shutdown'});

Contributions

  • are welcome;
  • should be tested;
  • should follow the same coding style.

License

The MIT License

Copyright (c) 2014 Ruslan Bredikhin

Package Sidebar

Install

npm i mockout

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • bredikhin