Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bpedro/node-expectation

Expectations let you run code whenever something happens
https://github.com/bpedro/node-expectation

Last synced: 16 days ago
JSON representation

Expectations let you run code whenever something happens

Awesome Lists containing this project

README

        

# expectation

expectation lets you specify code that will run whenever something happens.

![expectation flowchart](https://github.com/bpedro/node-expectation/raw/master/doc/images/expectation.png)

## Example

var expectation = require('../lib/expectation');

expectation.create(
function () {
return 'we are there!';
},
function (data) {
console.log(data);
}
);