How can I use Superagent but with the Promises A+ 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 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(...)
Aucun commentaire:
Enregistrer un commentaire