Get started with bluebird CDN
MIT licensed
Bluebird: Popular Node.js/browser promise library for advanced asynchronous task handling.
Tags:- promise
- performance
- fast
- promises-aplus
- async
Stable version
Copied!
How to start using bluebird CDN
// Import Bluebird using the provided CDN link
const Promise = require("bluebird");
// Sample array of numbers
const numbers = [1, 2, 3, 4, 5];
// Function to square a number
const square = num => Promise.resolve(num * num);
// Use Promise.map to apply the square function to each number in the array
Promise.map(numbers, square)
.then(squaredNumbers => console.log(squaredNumbers))
.catch(error => console.error(error));
Copied!
Copied!
Copied!
Copied!
All versions
0.7.10-1
1.0.0
1.2.1
1.2.2
2.10.0
2.10.1
2.10.2
2.11.0
2.3.10
2.3.11
2.3.6
2.3.9
2.4.0
2.4.1
2.4.2
2.4.3
2.5.0
2.5.1
2.5.2
2.5.3
2.6.0
2.6.1
2.6.2
2.6.3
2.6.4
2.7.0
2.7.1
2.8.0
2.8.1
2.8.2
2.9.0
2.9.1
2.9.10
2.9.11
2.9.12
2.9.13
2.9.14
2.9.15
2.9.16
2.9.17
2.9.18
2.9.19
2.9.2
2.9.20
2.9.21
2.9.22
2.9.23
2.9.24
2.9.25
2.9.26
2.9.27
2.9.28
2.9.29
2.9.3
2.9.30
2.9.31
2.9.32
2.9.33
2.9.34
2.9.4
2.9.5
2.9.6
2.9.7
2.9.8
2.9.9
3.0.0
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
3.0.6
3.1.0
3.1.1
3.1.2
3.1.3
3.1.4
3.1.5
3.2.0
3.2.1
3.2.2
3.3.0
3.3.1
3.3.2
3.3.3
3.3.4
3.3.5
3.4.0
3.4.1
3.4.2
3.4.3
3.4.4
3.4.5
3.4.6
3.4.7
3.5.0
3.5.1
3.5.2
3.5.3
3.5.4
3.5.5
3.6.0
3.7.0
3.7.1
*** 3.7.2