ethanent / phin

Node HTTP client
MIT License
576 stars 33 forks source link

Not suitable for browser use #19

Closed czycha closed 6 years ago

czycha commented 6 years ago

Despite being ultra-lightweight for server side use, this does not extend to the browser. Using Webpack, phin compiles to ~148KB (compare that to ~14.6KB for axios). At the least, I think that there should be a disclaimer about this . At the most, it would be great if a browser-ready version of phin was made.

ethanent commented 6 years ago

Ok, interesting. I've never attempted to use phin in frontend development as the fetch library seems to handle most of my HTTP needs. Feel free to make your own improvements to your fork as you feel are necessary for frontend use! (Frontend phin would be cool to use for consistency between client and server HTTP libraries!)