moc

mockout

Mocking a series of objects being sent through stdout

Showing:

Popularity

Downloads/wk

2

GitHub Stars

1

Maintenance

Last Commit

7yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100