Skip to content

Repository files navigation

submitform

Submit form data from an object easily

Install

$ npm install --save submitform

Usage

constsubmitform=require('submitform');constoptions={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

About

Submit form data from an object easily

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages