@idogo/ioa
v1.0.0
Published
Sample project for packages built with rollup.
Downloads
4
Maintainers
Readme
pkg-name
Simple asynchronous working lib base on generator function.
Install
npm install @idogo/ioa --save
Usage
const App = require('@idogo/ioa');
const app = new App();
app.use(function* (next) {
/* do...*/
yield next;
});
app.use(function* (next) {
/* do... */
yield next;
});
app.listen(port, host);