Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
50
increased by35.14%
Maintainers
1
Weekly downloads
 
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc