mask-wizard
v0.0.4
Published
um montao de masks
Downloads
4
Maintainers
Readme
Basic Usage
const maskWizard = require("mask-wizard");
//[...]
function applyTimeMask(e) {
// the time() output in some value cases
// 1 OUTPUT 00h01
// 13 OUTPUT 00h13
// 130 OUTPUT 01h30
// 13000 OUTPUT 13h00
e.currentTarget.value = maskWizard.time.interval(e.currentTarget.value);
}
<input placeholder="Example" onChange={applyTimeMask} />;