fetch-nodeshim
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

fetch-nodeshim

A looser implementation of fetch that bypasses Node.js' built-in fetch. Some implementations (specifically ones that provide undici-based shims) or some versions of Node.js may ship with a built-in version of undici that's older and/or missing patches.

This implementation of fetch uses built-ins as much as possible, using global Request, Response, and Headers, whether they're provided by a polyfill or by Node.js itself. However, it's a looser and more permissive implementation that calls into node:http and node:https instead.

Think of it as @remix-run/web-fetch, but lighter.

Readme

Keywords

none

Package Sidebar

Install

npm i fetch-nodeshim

Weekly Downloads

5

Version

0.3.0

License

MIT

Unpacked Size

102 kB

Total Files

9

Last publish

Collaborators

  • philpl