@esmkit/web-fetch
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@esmkit/web-fetch

Web API compatible [fetch API][] for nodejs.

Comparison to Alternatives

[node-fetch][]

The reason this fork exists is because [node-fetch][] chooses to compromise Web API compatibility and by using nodejs native [Readable][] stream. They way they put it is:

  • Make conscious trade-off when following [WHATWG fetch spec][whatwg-fetch] and stream spec implementation details, document known differences.
  • Use native Node streams for body, on both request and response.

We found these incompatibility to be really problematic when sharing code across nodejs and browser rutimes. This library uses [@esmkit/web-stream][] instead.

Readme

Keywords

none

Package Sidebar

Install

npm i @esmkit/web-fetch

Weekly Downloads

6

Version

0.1.0

License

MIT

Unpacked Size

266 kB

Total Files

57

Last publish

Collaborators

  • billgo