0.1.5 • Published 4 years ago

word-character-count v0.1.5

Weekly downloads
31
License
MIT
Repository
github
Last release
4 years ago

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.

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago