fetch-helper

1.0.0 • Public • Published

Fetch-Helper

auto handle response after fetch

Usage

import handleRes from '/path/to/module'

import {handleRes} from '/path/to/module'

or

var handleRes = require('/path/to/module')
fetch('/path/to/data')
  .then(handleRes)
  .then(res => {
    // data here.
  })

Readme

Keywords

Package Sidebar

Install

npm i fetch-helper

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • zhang-zhao