1.0.0 • Published 3 years ago
word-counter-js v1.0.0
words-counter
This is a javascript library to calculate the number of words in a sentence.
Installation
npm install word-counter-js
Usage
import wordCounter from "word-counter-js"
let s="Hello world"
console.log(wordCounter(s))
//output: 2
1.0.0
3 years ago