Package Exports
- submitform
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (submitform) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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