@hamidrezana/chapar
TypeScript icon, indicating that this package has built-in type declarations

1.9.0 • Public • Published

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

Package Sidebar

Install

npm i @hamidrezana/chapar

Weekly Downloads

15

Version

1.9.0

License

MIT

Unpacked Size

292 kB

Total Files

24

Last publish

Collaborators

  • hamidrezana