promisy
v1.2.0
Published
A simple .then chaining
Downloads
27
Readme
promisy
A simple .then chaining
Installation
npm install promisy
Quick Start
var promisy = require('../lib/promisy');
promisy(function (next) {
console.log('first');
next();
}).then(function (next) {
console.log('then 1');
setTimeout(function () {
next();
}, 1000);
}).then(function (next) {
console.log('then 2')
setTimeout(function () {
next();
}, 1000);
}).then(function (next) {
console.log('then 3');
});
API
.then(Function next)
License
MIT