@hamidrezana/chapar
v1.12.0
Published
Elegant and easy to use module to call APIs
Downloads
281
Maintainers
Readme
Chapar
About The Project
Call APIs easier than ever with Chapar
Installation
Using npm:
$ npm install @hamidrezana/chapar
Using yarn:
$ yarn add @hamidrezana/chapar
Usage
Firstly import Chapar
import Chapar from '@hamidrezana/chapar';
Then create new instant of Chapar
const chapar = new Chapar('https://jsonplaceholder.typicode.com');
Then you can call APIs easily with sendChapar
method
const response = await chapar.sendChapar('todos/1', { method: 'get' });
Roadmap
- [ ] Complete Documentation
- [x] Supporting multiple base urls
- [x] Supporting onError callback
- [ ] Supporting response template