🌐 simple-fetch-client
A friendly fetch client
Table of Contents
Features
- Retries and timeouts on requests via tenacious-fetch
- Using middleware via nanomiddleware
- Parsing of responses via fetch-response-enhancer
Install
This project uses node and npm.
$ npm install simple-fetch-client$ # OR $ yarn add simple-fetch-client
Usage
const api = 'https://jsonplaceholder.typicode.com' api api // 1api // Object {id: 101}api { super'https://jsonplaceholder.typicode.com' delay: 2000 // delay requests with 2 seconds this } async { const res = this return resbody } const myAPI = log: true myAPI
Contribute
- Fork it and create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
License
MIT