Skip to content

Hamidrezana/chapar

Repository files navigation

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
  • Supporting multiple base urls
  • Supporting onError callback
  • Supporting response template