An open API service indexing awesome lists of open source software.

https://github.com/ttab/mod-cons

Modern conveniences for native JavaScript promises
https://github.com/ttab/mod-cons

library mocha

Last synced: about 1 month ago
JSON representation

Modern conveniences for native JavaScript promises

Awesome Lists containing this project

README

          

mod-cons
===========

![Build Status](https://img.shields.io/travis/ttab/mod-cons.svg)
![Version](https://img.shields.io/npm/v/mod-cons.svg)
![Licens](https://img.shields.io/npm/l/mod-cons.svg)

Modern conveniences for native JavaScript promises.

Have you switched to native promises but miss the convenience of
`Q.nfcall`? This library contains a low-footprint reimplementations of
[Q] convenience functions meant to be run on top of native ES5
promises.

No messy dependencies. No half-baked home-rolled Promise
implementation. No wrappers.

- [ninvoke / nsend][ninvoke]
- [nfcall]
- [nfapply]
- [nfbind / denodeify][nfbind]
- [nbind]
- [npost][npost]
- [defer]
- [delay]

[Q]:https://github.com/kriskowal/q/
[ninvoke]:https://github.com/kriskowal/q/wiki/API-Reference#qninvokeobject-methodname-args
[nfcall]:https://github.com/kriskowal/q/wiki/API-Reference#qnfcallfunc-args
[nfapply]:https://github.com/kriskowal/q/wiki/API-Reference#qnfapplynodefunc-args
[nfbind]:https://github.com/kriskowal/q/wiki/API-Reference#qnfbindnodefunc-args
[npost]:https://github.com/kriskowal/q/wiki/API-Reference#qnpostobject-methodname-args
[nbind]:https://github.com/kriskowal/q/wiki/API-Reference#qnbindnodemethod-thisarg-args
[defer]:https://github.com/kriskowal/q/wiki/API-Reference#qdefer
[delay]:https://github.com/kriskowal/q/wiki/API-Reference#qdelayms