Table of Contents
Extract values from a form element into an object
Built with ❤︎ by tiaanduplessis and contributors
Table of Contents
Install
With package manager:
$ npm install form-extract# OR $ yarn add form-extract
With CDN:
<!-- Or -->
Usage
Say you have a HTML
form:
This can then be extracted to a object:
// formExtract(document.querySelector('.foo')) also works// {// city: "Cape Town",// country: "South Africa",// gender: "m",// languages: ["javascript", "go"],// name: "Tiaan",// surname: "du Plessis"// }
Contributing
Contributions are welcome!
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Or open up a issue.
License
Licensed under the MIT License.