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
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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