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
Earn up to 16% annual interest with Nexo. Icon
Earn up to 16% annual interest with Nexo.

Let your crypto work for you

Put idle assets to work with competitive interest rates, borrow without selling, and trade with precision. All in one platform. Geographic restrictions, eligibility, and terms apply.
Get started with Nexo.
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