@dot-event/fetch

0.0.15 • Public • Published

@dot-event/fetch

dot-event universal HTTP fetch

supernova

Install

npm install dot-event @dot-event/fetch

Universal

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.

Readme

Keywords

Package Sidebar

Install

npm i @dot-event/fetch

Weekly Downloads

0

Version

0.0.15

License

MIT

Unpacked Size

5.57 kB

Total Files

5

Last publish

Collaborators

  • winton