You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

word-character-count

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

word-character-count

Word and character count from html5 string

0.1.5
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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.

Keywords

word-count

FAQs

Package last updated on 06 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts