0.2.5 • Published 9 years ago

oboe-q v0.2.5

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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-q --save

Require in your application

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

9 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago