text-format

Formatting options for plain text data (javascript/ES6)

Usage no npm install needed!

<script type="module">
  import textFormat from 'https://cdn.skypack.dev/text-format';
</script>

README

text-format

Formatting options for plain text data (javascript/ES6)

NPM

  $ npm install text-format --save

Example

  import * as textFormat from "text-format";
  const formatted = textFormat.formatPhone("1234567890");
  console.log(formatted);