Simple usage string masking functions, checkout our documentation
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} />
You can simply contribute giving us a star on github :D
If you want to contribute with the code feel free to open issues and fork the repository to create pull request following our Contributing Guideline :D
- Run
yarn
to install all dependencies - Compile the code with
yarn build
or if you wanna build in watch modeyarn start
- Then you can make any changes on
src
- Tests your changes in
__tests__