Skip to content

Node.js support #184

@kirill-konshin

Description

@kirill-konshin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions