stream of submission events for form controls

npm install submissions
1 downloads in the last day
1 downloads in the last week
17 downloads in the last month


dependency status

browser support

stream of submission events for form controls


var submissions = require("submissions")
var html = require("unpack-html")
var fold = require("reducers/fold")

var template = require("./template.html")
var elements = html(template)


// get a reducible representation of all submission events
var stream = submissions(elements)

// the chunk is the state of the form controls in elements
fold(stream, function (chunk) {
    console.log("got submission chunk", chunk)

Submission events are hitting ENTER on inputs and clicking buttons.

When a submission event occurs it gives you the form-data state of the elements at that time.


npm install submissions


  • Raynos

MIT Licenced

npm loves you