Using Superagent in your Browser

Quick tip.

I love superagent. Its a great lightweight JS httpclient that I use in almost all of my node apps that needs one.

But what if you want to use it in your browser frontend and you don’t know how?

All it takes:

Add the Javascript
<script src=""></script>
Call it!
     // do everything you want to res

Thats it! No need to declare anything. just call superagent.