Tiny 500b fetch "barely-polyfill". With a module bundler like rollup or webpack, you can import unfetch to use in your code without modifying any globals. While one of Unfetch's goals is to provide a familiar interface, its API may differ from other fetch polyfills/ponyfills. One of the key differences is that Unfetch focuses on implementing the fetch() API, while offering minimal (yet functional) support to the other sections of the Fetch spec, like the Headers class or the Response class. Uses simple arrays instead of iterables, since arrays are iterables. No streaming, just Promisifies existing XMLHttpRequest response bodies. Use in Node.JS is handled by isomorphic-unfetch.

Features

  • About 500 bytes of ES3 gzipped
  • Just fetch() with headers and text/json responses
  • A subset of the full API
  • Supports IE8+ (assuming Promise is polyfilled of course!)
  • One function, no dependencies
  • Written in ES2015, transpiled to 500b of old-school JS

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow unfetch

unfetch Web Site

Other Useful Business Software
Try Google Cloud Risk-Free With $300 in Credit Icon
Try Google Cloud Risk-Free With $300 in Credit

No hidden charges. No surprise bills. Cancel anytime.

Use your credit across every product. Compute, storage, AI, analytics. When it runs out, 20+ products stay free. You only pay when you choose to.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of unfetch!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript JSON Software, JavaScript Source Code Analysis Tool

Registered

2021-10-19