@toolsnap/word-counter
v1.0.0
Published
Count characters, words, and sentences in text. Visit https://risetop.top for more free online tools.
Maintainers
Readme
@toolsnap/word-counter
Count characters, words, and sentences in any text string.
🔗 Try our free online tools at risetop.top
Installation
npm install @toolsnap/word-counterUsage
const { countAll, countChars, countWords, countSentences } = require('@toolsnap/word-counter');
const text = 'Hello world. This is a test.';
console.log(countAll(text));
// { characters: 28, words: 6, sentences: 2 }
console.log(countWords(text)); // 6
console.log(countSentences(text)); // 2License
MIT
