npm install @riverside/form-serialize
How to use
const serialize = require('@riverside/form-serialize'); console.log(serialize(form));
<script> console.log(serialize("#form")); console.log(serialize(document.querySelector("#form"))); </script>
form-serialize is licensed under the MIT license.