Skip to content

thisiskeith/op

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Oboe.js XHR wrapper with ES6 promises

Resources

Stars

Watchers

Forks

Packages

No packages published