capital-p

0.0.5 • Public • Published

capital-p

Because why the fuck not?

var P = require('capital-p');
 
var a = P((res, rej) => {
    setTimeout(() = { res('hello'); }, 1000);
});
 
var b = a.then(hello => `${hello}` world);
 
b.then(console.log.bind(console));
// Profit

install

with npm do:

npm install capital-p

license

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    1
  • 0.0.3
    1
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i capital-p

Weekly Downloads

0

Version

0.0.5

License

MIT

Last publish

Collaborators

  • mvaldesdeleon