fancy-fetch

0.0.2 • Public • Published

fancy-fetch

Usage

  import fetch from 'fancy-fetch'

  fetch({
    url: 'http://server.com/api/endpoint/or/something',
    method: 'put',
    body: {
      keys: values
    },
    success: function() {},
    error: function() {}
  })

The only thing special about this helper is that it provides a success and error callback. All other options are passed along to isomorphic-fetch, which is another wrapper around github's polyfill for whatwg spec of fetch.

Compile

npm run compile

For now, let's keep the compiled builds in the project until we get a npm prepublish.

Readme

Keywords

Package Sidebar

Install

npm i fancy-fetch

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • gravitypersists