Event emitter for common keyup input interaction changes.
npm install input-has-changed
Emits relevant events when the input has actually changed.
```
npm install input-has-changed
`js
var hasChanged = require('input-has-changed');
var i = document.createElement('input');
i.value = 'initial value';
var hc = hasChanged(i);
hc.on('changed', function (val) { console.log(val); });
hc.on('original', function (val) { console.log(val); });
i.value = 'initial value +'; // on keyup will emit hc#changedhc#original
i.value = 'initial value'; // on keyup will emit
hc.update('new value');
i.value = 'new value +'; // on keyup will emit hc#changedhc#original
i.value = 'new value'; // on keyup will emit `
Pass in an input[type=text|password|email...] element. A keyup` handler
will be bound to it and filter out nav keys like arrows and tabbing.
Emitted if the val on keyup is different than the original value.
Emitter if the val on key is the same as the original value.
Update the original value. This makes it easy to change behavior without
worrying about rebinding events.