Skip to content

TheLudd/superagent-future

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

superagent-future

Fantasy Land Future extension of superagent.

installation

npm i -S superagent-future

usage

Simply require the module require('superagent-future'). This extends the prototype of superagents Request class with a method called createFuture.

require('superagent-future');
var request = require('superagent');

var future = request.post(someURL)
  .set('SomeHeader', 'someValue')
  .send(someData)
  .createFuture();

future.fork(errFn, successFn);

underlying future implementation

superagent-future currently uses the future class from ramda-fantasy

About

Fantasy Land Future extension of superagent

Resources

Stars

Watchers

Forks

Packages

No packages published