A tiny typescript-first utility library to convert JavaScript Objects to FormData, and handle conversions the other way around.
The library exposes two functions:
toFormData(data: Object)Accepts any serializable object and returns a flattened FormData instance.
toObject(formData: FormData)Accepts a FormData instance and returns an object parsed from the original format.
6 commits
TypeScript
95.3%
JavaScript
4.7%
A tiny typescript-first utility library to convert JavaScript Objects to FormData, and handle conversions the other way around.
The library exposes two functions:
toFormData(data: Object)Accepts any serializable object and returns a flattened FormData instance.
toObject(formData: FormData)Accepts a FormData instance and returns an object parsed from the original format.
6 commits
TypeScript
95.3%
JavaScript
4.7%