resourcicious
v0.0.1
Published
A wrapper around request, which intends to be ActiveResource in javascript.
Downloads
8
Maintainers
Readme
Install
$ npm install --save resourcicious
Usage
var resourcicious = require('resourcicious');
var lo = require('lodash');
var foo = lo.clone(resourcicious);
var response;
foo.site = 'https://my-app.com/';
foo.path = 'videos/';
var response;
foo.all({}, function(req, resp){
response = resp;
});
// check results
console.dir(response);
// or event style callbacks like request docs
foo.all().on('response', function(response) {
// do thing with response
});
License
MIT © Kevin Krauss