pisco-callback-to-promise
Pisco library to work with callback functions making a promise API
Last updated 3 years ago by cells-developers .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pisco-callback-to-promise 
SYNC missed versions from official npm registry.

Pisco Callbacks to Promise

Library that allows to work with callbacks functions like if they were Promises.

Example:

const pctp = require('pisco-callback-to-promise');

pctp.c2p(childProcess.exec, 'pwd')
  .then(stdout => {
    console.log(stdout);
  })
  .then(() => {...})
  .catch((error) => pctp.logError(error, cb));
});

Current Tags

  • 0.1.11-beta.0                                ...           beta (3 years ago)
  • 0.1.11                                ...           latest (3 years ago)

3 Versions

  • 0.1.11                                ...           3 years ago
  • 0.1.11-beta.0                                ...           3 years ago
  • 0.1.9                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 4
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |