Skip to content
/ oq Public

oqXHR is a simple Oboe.js XHR wrapper with promises by Q

Notifications You must be signed in to change notification settings

thisiskeith/oq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

oqXHR is a simple Oboe.js XHR wrapper with promises by Q

Resources

Stars

Watchers

Forks

Packages

No packages published