Creating a Node.js Library that Supports Both Promises and Error-First Callbacks

suggest change

Introduction

Many people like working with promises and/or async/await syntax, but when writing a module it would be useful to some programmers to support classic callback style methods as well. Rather than creating two modules, or two sets of functions, or having the programmer promisify your module, your module can support both programming methods at one using bluebird’s asCallback() or Q’s nodeify().

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Creating library that supports promises and error-first callbacks:
* Creating a Node.js Library that Supports Both Promises and Error-First Callbacks

Table Of Contents
1 npm
41 cli
43 grunt
59 Hack
64 ES6
67 Redis
69 MongoDB
86 MongoDB
87 Lodash
91 CORS
100 Creating library that supports promises and error-first callbacks
105 N-API
108 Require