@dot-event/fetch
v0.0.15
Published
dot-event fetch
Readme
@dot-event/fetch
dot-event universal HTTP fetch

Install
npm install dot-event @dot-event/fetchUniversal
This library works both server and client side.
Setup
const dot = require("dot-event")()
require("@dot-event/fetch")(dot)Usage
const { body, ok, status } = await dot.fetch({
url: "https://google.com",
})Options
| Option | Description | | ------ | ----------------------------------------------------------------- | | json | Parse response body | | store | Save response body to store | | url | Request URL |
Credit
This library uses isomorphic-unfetch under the hood.
