0.0.2 • Published 8 years ago

fancy-fetch v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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.

0.0.2

8 years ago

0.0.1

8 years ago