form-obj

1.0.2 • Public • Published

form-obj

Convert an HTML form's input values into an object.

Install

$ npm install --save form-obj

Usage

var formObj = require('form-obj');
var form = document.querySelector('form');

formObj(form);
/*
	{
		name: 'foo',
		password: '123456'
	}
 */

License

MIT © Andreas Gillström

Package Sidebar

Install

npm i form-obj

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • gillstrom