superagent-use
Global plugin support for SuperAgent.
Summary
Instead of manually calling use()
for every request, use()
is called automatically for every request.
Example
/* The superagent-use module returns a clone of the superagent provided with the new functionality. */var agent = ;/* A sample superagent plugin/middleware. */var prefix = ; agent; agent ;