Skip to content

lekoala/pattern-formatter

Repository files navigation

Input Formatter

NPM Downloads

How to use

Init with PatternFormatter.init() and set a data-alias attribute.

<script type="module">
  import PatternFormatter from "./PatternFormatter.js";
  PatternFormatter.init();
</script>
<p>Integer input</p>
<input type="text" class="formatter" data-alias="int" />