word-character-count
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "word-character-count", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Word and character count from html5 string", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Word and character count from html5 string. | ||
### Why this package? | ||
## Why this package? | ||
Word and character count is a promise based function. | ||
Word and character count is a **promise** based function. | ||
### Installing | ||
## Installing | ||
`npm install word-character-count` | ||
### Usage | ||
## Usage | ||
`const wordCount = require('word-character-count') | ||
```javascript | ||
const wordCount = require("word-character-count"); | ||
const result = await wordCount.WordCount('<p>This endpoint works!</p>'); | ||
` | ||
const result = await wordCount.WordCount("<p>This endpoint works!</p>"); | ||
``` | ||
### Return object | ||
## Return object | ||
It returns JSON object as promise. | ||
It returns **JSON** object as promise. | ||
example: | ||
`{CharacterCount: 20, WordCount: 3}` | ||
```javascript | ||
result = { | ||
CharacterCount: 20, | ||
WordCount: 3 | ||
}; | ||
``` | ||
where | ||
WordCount and CharacterCount are both number dataType. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3303
34