FormData with extra powers.
npm:
npm install @avidian/form-data
yarn:
yarn add @avidian/form-data
import FormData from '@avidian/form-data';
const object = {
key: 'value',
};
const formData = new FormData(object, ?options, ?prefix);
// or
formData.serialize(object, ?options, ?prefix)
Parmesh Krishen's object-to-form-data package.