amruthpillai/crossform

A tiny typescript-first utility library to convert JavaScript Objects to FormData, and handle conversions the other way around.

4

stars

6

commits

TypeScript

primary language

Apr 3, 2024

updated

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.

Contributors

amruthpillai

6 commits

amruthpillai/crossform

A tiny typescript-first utility library to convert JavaScript Objects to FormData, and handle conversions the other way around.

4

stars

6

commits

TypeScript

primary language

Apr 3, 2024

updated

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.

Contributors

amruthpillai

6 commits

Languages

TypeScript

95.3%

JavaScript

4.7%