You can override another Promise from a library like node-fetch
with bluebird.
var fetch = require("node-fetch");
var Bluebird = require("bluebird");
fetch.Promise = Bluebird;
I always used a unix environment to work and like it. I'm also a creative guy, sometimes I do graphism, design and don't like to switch OS to enjoy doing both. I heard of WSL and saw this as the forgotten messiah, so here a guide to install everything you will have to set up to enjoy both like me.
First we will need to activate the Windows Subsystem Linux (WSL).
Douglas Crockford’s code conventions for JavaScript recommend this pattern when privacy is important discouraging naming properties with the underscore prefix to indicate privacy.
var Person = (function() {
function Person(name) {
this.getName = function() {
return name;
UPDATE wp_options
SET option_value = replace(option_value, 'http://mywebsite.fr', 'http://localhost/mywebsite')
WHERE option_name = 'home'