https://github.com/jenstornell/density.js
https://github.com/jenstornell/density.js
density javascript js keyword keyword-density vanilla
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jenstornell/density.js
- Owner: jenstornell
- Created: 2019-09-28T15:57:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-05T17:09:51.000Z (over 5 years ago)
- Last Synced: 2025-01-20T05:52:18.322Z (4 months ago)
- Topics: density, javascript, js, keyword, keyword-density, vanilla
- Language: JavaScript
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# density.js
*Version: 1.1*
A class to convert html or text content to keyword density. The output will be like below.
```text
{count: 2, word: "a"}
{count: 2, word: "html"}
{count: 1, word: "heading"}
{count: 1, word: "here"}
{count: 1, word: "is"}
{count: 1, word: "paragraph"}
```## Features
- Vanilla javascript with no dependencies
- Stopwords - Words to not be included
- Characters - Min number of characters allowed
- Words - Number of words on each row## Setup
Place the script just before `