npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

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

install

npm i submitform

Downloadsweekly downloads

254

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability