A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/github/fetch/issues/184 below:

Node.js support · Issue #184 · JakeChampion/fetch · GitHub

Do you have anything in your roadmap regarding Node.js support?

The purpose is to allow other cross-env libraries to use fetch as the client.

From what I see now in master there are couple of things to be done:

  1. Use XMLHttpRequest polyfill (for example https://github.com/pwnall/node-xhr2)
  2. Wrap the code in something like UMD to make sure CommonJS and AMD compatibility
  3. Export all classes and fetch() function instead of always writing to global
  4. Add optional polyfill() method just like in es6-promise for AMD users
  5. Take over NPM package name fetch, current one is unmaintained for 2 years

Is it worth investigation and making a PR? Does not seem to be too much effort.

UnsungHero97, huowenxuan, felipesousa and feimosi


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4