This is a javascript library to calculate the number of words in a sentence.
npm install word-counter-js
import wordCounter from "word-counter-js"
let s="Hello world"
console.log(wordCounter(s))
//output: 2
A javascript library to calculate the number of words in a sentence.
This is a javascript library to calculate the number of words in a sentence.
npm install word-counter-js
import wordCounter from "word-counter-js"
let s="Hello world"
console.log(wordCounter(s))
//output: 2
A javascript library to calculate the number of words in a sentence.