crossform
v0.0.4
Published
A tiny typescript-first utility library to convert JavaScript Objects to FormData, and handle conversions the other way around.
Downloads
5
Readme
Crossform
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.