Skip to content

avidianity/form-data

Repository files navigation

@avidian/form-data

GitHub license

FormData with extra powers.

Installation

npm:

npm install @avidian/form-data

yarn:

yarn add @avidian/form-data

Usage

import FormData from '@avidian/form-data';

const object = {
    key: 'value',
};

const formData = new FormData(object, ?options, ?prefix);

// or

formData.serialize(object, ?options, ?prefix)

Credits

Parmesh Krishen's object-to-form-data package.