Top "Bluebird" questions

Bluebird is a fully featured promise library for client and server JavaScript with focus on innovative features and performance.

How do I convert an existing callback API to promises?

I want to work with promises but I have a callback API in a format like: 1. DOM load or other …

javascript node.js callback promise bluebird
How do I access previous promise results in a .then() chain?

I have restructured my code to promises, and built a wonderful long flat promise chain, consisting of multiple .then() callbacks. …

javascript scope promise bluebird es6-promise
How do I tell if an object is a Promise?

Whether it's an ES6 Promise or a bluebird Promise, Q Promise, etc. How do I test to see if a …

javascript promise q bluebird es6-promise
Correct way to write loops for promise.

How to correctly construct a loop to make sure the following promise call and the chained logger.log(res) runs …

javascript node.js promise bluebird
Aren't promises just callbacks?

I've been developing JavaScript for a few years and I don't understand the fuss about promises at all. It seems …

javascript callback promise q bluebird
Replacing callbacks with promises in Node.js

I have a simple node module which connects to a database and has several functions to receive data, for example …

javascript node.js promise q bluebird
What is the explicit promise construction antipattern and how do I avoid it?

I was writing code that does something that looks like: function getStuffDone(param) { | function getStuffDone(param) { var d = Q.defer(); /* …

javascript promise q bluebird es6-promise
Handling multiple catches in promise chain

I am still fairly new to promises and am using bluebird currently, however I have a scenario where I am …

javascript node.js promise bluebird
How to promisify Node's child_process.exec and child_process.execFile functions with Bluebird?

I'm using the Bluebird promise library under Node.js, it's great! But I have a question: If you take a …

javascript node.js promise bluebird
Chaining promises with then and catch

I'm using the bluebird Promise library. I'd like to chain promises and catch specific promises errors. Here's what I'm doing : …

javascript bluebird