0.0.1 • Published 11 years ago

unpromise v0.0.1

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

unpromise

Sometimes you want a promise to work with a callback.

install: npm install unpromise

example:

var unpromise = require('unpromise');

function createTask(str, callback) {
  // task.create returns an object that
  // has .success and .error methods
  var somePromise = task.create();
  unpromise(somePromise, callback);
}
0.0.1

11 years ago