1.1.0 • Published 1 year ago

deep-serialize-form v1.1.0

Weekly downloads
-
License
GPL
Repository
github
Last release
1 year ago

Deep Serialize Form Data

Form serializer capable of handling nested data and arrays. Based largely from Ben Alman's De-param function from the JQuery BBQ plugin, but altered to have no jQuery dependencies, and convert FormData into javascript objects, instead of query parameters.

Installation

$ yarn add deep-serialize-form

Usage

Modular Javascript:

> import deepSerializeForm from 'deep-serialize-form'

Include Directly:

> <script src="/deep-serialize-form.min.js"></script>

Usage:

> const form = document.getElementById('form');
> const data = deepSerializeForm(form);
> console.log(data);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT GPL

1.1.0

1 year ago

1.0.7

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago