Utility to create/submit form
npm install dom-form-submit

#### Npm
``console`
npm install dom-form-submit
`javascript
var submit = require('dom-form-submit');
// Submit form with data (create or use existing form) with callback to run after submit
submit(
{a: 'b', c: 'd'},
{id: 'my-form-id', name: 'my-form-name'},
function(submittedForm) {} // callback with form element
);
// Submit an existing form.
submit({a: 'b', c: 'd'}, {
method: 'POST',
form: document.getElementById('my-form')
});
// Basically empty form submit
submit();
`
`javascript``
{
method: 'GET',
enctype: 'application/x-www-form-urlencoded',
target: '_self'
}
Please feel free to create a PR!
https://github.com/gillstrom/submitform
https://github.com/DylanPiercey/submit-form