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
NPM
npm i text-formatter-light
import textFormatter from "text-formatter-light";
const format = "(xxxx) - xxxx"
textFormatter("12345678",format); // -> (1234) - 5678
npm i text-formatter-light
1
1.0.0
ISC
3.57 kB
4