oboe-p

3.1.1 • Public • Published

oboe-p

oboe-p is a simple Oboe.js XHR wrapper with ES6 promises optimized for use with your Node.js and React apps.

Examples

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));
};

Installation

Install the package

npm install oboe-p --save

Import into your application

import op from 'oboe-p';

Readme

Keywords

none

Package Sidebar

Install

npm i oboe-p

Weekly Downloads

0

Version

3.1.1

License

MIT

Last publish

Collaborators

  • thisiskeith