Superagent with Promises A+ spec, similar to Bluebird?

49 views
Skip to first unread message

Justin Maat

unread,
Mar 10, 2015, 11:14:41 AM3/10/15
to nod...@googlegroups.com
Does anyone know of a way to use Superagent with the A+ promises spec?  I'm working on a project that uses both Superagent and Bluebird and I would like to use the .then() syntax but can't figure out an easy way to do this without writing my own wrapper code.  

I see this project - https://github.com/KyleAMathews/superagent-bluebird-promise   but don't want to  have to use the .promise() on each call.

Are there any other existing modules which make it look more like Bluebird?  


Something more like - 

var request = ('superagent-wrapperModule');

request.get(url).then(..).catch(...) 



Reply all
Reply to author
Forward
0 new messages