form-constructor
v0.0.1
Published
Build forms with ease
Downloads
4
Readme
Form Constructor
Useful utility I built to construct forms. I was having an interesting issue with https://www.npmjs.org/package/request. You can construct a form with POJO, but if your form requires to have multiple values with the same key, you're out of luck.
Installation
npm install form-constructor
How to use
var FormConstructor = require('form-constructor');
var form = new FormConstructor();
form.add('foo', 'bar');
console.log(form.toString()); // outputs foo=bar