Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/riverside/form-serialize
- Owner: riverside
- License: mit
- Created: 2015-08-05T17:14:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-06-04T08:50:43.000Z (over 1 year ago)
- Last Synced: 2024-10-28T11:45:49.899Z (15 days ago)
- Topics: form, javascript, serialization, serialize-forms
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 15
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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
```htmlconsole.log(serialize("#form"));
console.log(serialize(document.querySelector("#form")));```
#### License
form-serialize is licensed under the MIT license.