Mixin-Object-Trim

Build Status codecov npm version downloads

:fire: Object Trim Mixin for Barktler

Install

yarn add @barktler/mixin-object-trim
# Or
npm install @barktler/mixin-object-trim --save

Usage

import { createObjectTrimMixin } from "@barktler/mixin-object-trim";
import { YourAPI } from "somewhere";

const api: YourAPI = new YourAPI();
api.useMixin(createObjectTrimMixin({
    trimRequestBody: true,
    trimResponseData: true,
}));

Documents

See Barktler Documents.