1.0.0 • Published 8 years ago

submitform v1.0.0

Weekly downloads
54
License
MIT
Repository
github
Last release
8 years ago

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