README
Format your text the way you wanted
Installation
NPM
npm i text-formatter-light
Usage
import textFormatter from "text-formatter-light";
const format = "(xxxx) - xxxx"
textFormatter("12345678",format); // -> (1234) - 5678
Format your text fast and lightweightly
<script type="module">
import textFormatterLight from 'https://cdn.skypack.dev/text-formatter-light';
</script>
NPM
npm i text-formatter-light
import textFormatter from "text-formatter-light";
const format = "(xxxx) - xxxx"
textFormatter("12345678",format); // -> (1234) - 5678