Have ideas to improve npm?Join in the discussion! ¬Ľ

    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

    Install

    npm i mockout

    DownloadsWeekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • avatar