0.0.5 • Published 10 years ago

unt v0.0.5

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

unt

Expressive middleware for stream programming using generators Mostly inspired by koa-compose

Installation

npm install unt

Example

var unit = require('unt');
var app  = unit();


app.use(function *(next){
  var start = new Date;
  yield next;
  this.result.ms = new Date - start;
});


app.use(function *(){
  this.result.foo = 'bar';
});

// input = stream or nsq or kinesis
app.listen(input)

Running tests

npm test

Licence

MIT

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago