word-counter-ts

Count words in strings. Support for English, CJK, and Cyrillic.

Usage no npm install needed!

<script type="module">
  import wordCounterTs from 'https://cdn.skypack.dev/word-counter-ts';
</script>

README

word-counter-ts

Count words in strings. Support for English, CJK, and Cyrillic.

npm Package Version

Features

  • customizable word splitter (default use word-regex)
  • custom collapse behaviour (default String.toLocaleLowerCase)

License

BSD-2-Clause