submitform
v1.0.0
Published
Submit form data from an object easily
Downloads
681
Maintainers
Readme
submitform
Submit form data from an object easily
Install
$ npm install --save submitform
Usage
const submitform = require('submitform');
const options = {
action: 'http://example.com',
id: 'Example',
method: 'POST'
};
submitform({foo: 'bar'}, options);
API
submitform(data, options)
data
Required
Type: object
Data to be sent.
options
Required
Type: object
Attributes to be set on the form element.
License
MIT © Andreas Gillström