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
Go From AI Idea to AI App Fast Icon
Go From AI Idea to AI App Fast

One platform to build, fine-tune, and deploy ML models. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Try 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