An open API service indexing awesome lists of open source software.

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

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 `