Miss any of our Open RFC calls?Watch the recordings here! »

@cheesecakelabs/fetch

2.1.1 • Public • Published

fetch

Opinionated fetch wrapper for modern front-end.

Install

npm install --save @ckldeveloper/fetch

Initialize

  // request.js
  import fetch from '@ckldeveloper/fetch'
  export default fetch.api('http://your_api.io/api/v1/', defaultOptions)

REQUEST

  import fetch from './request'
 
  fetch.get('users')
  fetch.post('users', options, body)
  fetch.patch('users', options, body)
  fetch.put('users', options, body)
  fetch.delete('users')
  fetch.upload('users', options, formData)

Keywords

none

Install

npm i @cheesecakelabs/fetch

DownloadsWeekly Downloads

3

Version

2.1.1

License

MIT

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar