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