๐Ÿ“ฆ kitten / fetch-nodeshim

A Node.js fetch shim using built-in Request, Response, and Headers (but without native fetch)

โ˜… 1 stars โ‘‚ 0 forks ๐Ÿ‘ 1 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/kitten/fetch-nodeshim.git
HTTPS git clone https://github.com/kitten/fetch-nodeshim.git
SSH git clone git@github.com:kitten/fetch-nodeshim.git
CLI gh repo clone kitten/fetch-nodeshim
github-actions[bot] github-actions[bot] Version Packages (#7) 6f956f1 10 months ago ๐Ÿ“ History
๐Ÿ“‚ 6f956f1859e695c5f0cfc99009afd481e295308f View all commits โ†’
๐Ÿ“ .changeset
๐Ÿ“ .github
๐Ÿ“ scripts
๐Ÿ“ src
๐Ÿ“„ .gitattributes
๐Ÿ“„ .gitignore
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ LICENSE.md
๐Ÿ“„ package.json
๐Ÿ“„ pnpm-lock.yaml
๐Ÿ“„ README.md
๐Ÿ“„ tsconfig.json
๐Ÿ“„ README.md

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.