Skip to content

otisidev/word-character-count

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Word and character count from html5 string.

Why this package?

Word and character count is a promise based function.

Installing

using npm

npm install word-character-count

using yarn

yarn add word-character-count

Usage

const wordCount = require("word-character-count");

const result = await wordCount.WordCount("<p>This endpoint works!</p>");

Return object

It returns JSON object as promise.

example:

result = {
	CharacterCount: 20,
	WordCount: 3,
	words: "This endpoint works!"
};

where WordCount and CharacterCount are both number dataType.

About

Word and character count from html5 string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published