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
The AI workplace management platform Icon
The AI workplace management platform

Plan smart spaces, connect teams, manage assets, and get insights with the leading AI-powered operating system for the built world.

By combining AI workflows, predictive intelligence, and automated insights, OfficeSpace gives leaders a complete view of how their spaces are used and how people work. Facilities, IT, HR, and Real Estate teams use OfficeSpace to optimize space utilization, enhance employee experience, and reduce portfolio costs with precision.
Learn More
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