Driver-Fetch

Build Status codecov npm version downloads

:yellow_heart: Fetch Driver

Install

yarn add @barktler/driver-fetch
# Or
npm install @barktler/driver-fetch --save

Usage

Create Fetch driver with json body formatter

import { createFetchDriver } from "@barktler/driver-fetch";
api.useDriver(createFetchDriver());

Create Fetch driver with form data body formatter

import { createFetchDriver } from "@barktler/driver-fetch";
api.useDriver(createFetchDriver({
    bodyType: 'form-data',
}));