Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/riverside/form-serialize

HTML form serialization
https://github.com/riverside/form-serialize

form javascript serialization serialize-forms

Last synced: 1 day ago
JSON representation

HTML form serialization

Awesome Lists containing this project

README

        

# form-serialize
Vanilla JavaScript form serialization

[![NPM](https://nodei.co/npm/form-serialize.png)](https://nodei.co/npm/form-serialize/)

When you can't (or don't want to) use javascript libraries like jQuery, Moo Tools, Dojo, YUI or Prototype, and their built-in functions, but still need a quick and easy way to serialize forms.
#### Installation
- npm
```
npm install @riverside/form-serialize
```
- browser
```html

```
#### How to use
- node.js
```
const serialize = require('@riverside/form-serialize');
console.log(serialize(form));
```
- browser
```html

console.log(serialize("#form"));
console.log(serialize(document.querySelector("#form")));

```

#### License
form-serialize is licensed under the MIT license.