Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bpedro/node-expectation
- Owner: bpedro
- License: mit
- Created: 2011-04-19T00:06:29.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-05-24T11:12:45.000Z (over 12 years ago)
- Last Synced: 2025-01-01T22:04:36.429Z (23 days ago)
- Language: JavaScript
- Homepage:
- Size: 137 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
}
);