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

Package Sidebar

Install

npm i submitform

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • gillstrom