printf-ana / mask-wizard

Simple usage string masking functions

Home Page:https://mask-wizard.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mask Wizard Logo

Mask Wizard

Simple usage string masking functions, checkout our documentation

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} />

Contributing

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

How to run locally

  • Run yarn to install all dependencies
  • Compile the code with yarn build or if you wanna build in watch mode yarn start
  • Then you can make any changes on src
  • Tests your changes in __tests__

About

Simple usage string masking functions

https://mask-wizard.vercel.app

License:MIT License


Languages

Language:TypeScript 89.0%Language:JavaScript 11.0%