1.2.0 • Published 11 years ago

promisy v1.2.0

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

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

1.2.0

11 years ago

1.1.0

11 years ago

1.0.0

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago