word-counter-demo

Counting word occurences in a text, ignores words shorter than 2 characters Example:

Usage no npm install needed!

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

README

WORD COUNTER

Counting word occurences in a text, ignores words shorter than 2 characters Example:

const wordCounter = require('word-counter-demo');

const words = wordCounter(`crème brulée! craime brulay? crem\
e brulee no yes creme`);

console.log(words);

Returns

{ 'crème': 1,
  'brulée!': 1,
  craime: 1,
  'brulay?': 1,
  creme: 2,
  brulee: 1,
  yes: 1 }

LICENSE

MIT