oboe-p is a simple Oboe.js XHR wrapper with ES6 promises optimized for use with your Node.js and React apps.
Node.js
exports.getExample = function (req, res) {
var xhrData = {
url: 'http://example.com/'
};
op(xhrData)
.then((payload) => res.send(payload))
.catch((error) => res.status(500).send(error));
};
Install the package
npm install oboe-p --save
Import into your application
import op from 'oboe-p';