submitform

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i submitform

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • gillstrom