oboe-q

0.2.5 • Public • Published

oboe-q

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

Examples

React

 
var xhrData = {
        url: 'http://example.com/'
    };
 
return oq(xhrData);

Node.js

exports.getExample = function (req, res) {
 
    var xhrData = {
        url: 'http://example.com/'
    };
 
    oq(xhrData)
        .then(function (payload) {
            res.send(payload);
        })
        .fail(function (error) {
            // Handler error
        })
        .done();
};

Installation

Install the package

npm install oboe---save

Require in your application

var oq = require('oboe-q');

Readme

Keywords

none

Package Sidebar

Install

npm i oboe-q

Weekly Downloads

1

Version

0.2.5

License

MIT

Last publish

Collaborators

  • thisiskeith