npm.io
1.3.1 • Published 3 years ago

@foxglove/just-fetch

Licence
MIT
Version
1.3.1
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
2

@foxglove/just-fetch

Isomorphic ponyfill wrapping native browser fetch and node-fetch.

npm version

Usage

import fetch from "@foxglove/just-fetch";

Usage is the same whether you are targeting browsers or node.js. The browser target returns the native window.fetch implementation, and in node.js the node-fetch library is returned.

License

@foxglove/just-fetch is licensed under MIT License.

Releasing

  1. Run yarn version --[major|minor|patch] to bump version
  2. Run git push && git push --tags to push new tag
  3. GitHub Actions will take care of the rest