0.0.2 • Published 10 years ago

mockout v0.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

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