https://github.com/duckyies/wordcloud-generator
A wordcloud generator for nodejs
https://github.com/duckyies/wordcloud-generator
Last synced: 3 months ago
JSON representation
A wordcloud generator for nodejs
- Host: GitHub
- URL: https://github.com/duckyies/wordcloud-generator
- Owner: duckyies
- License: gpl-2.0
- Created: 2024-05-15T12:14:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-02T10:11:03.000Z (12 months ago)
- Last Synced: 2025-01-26T13:37:27.471Z (4 months ago)
- Language: TypeScript
- Size: 1.01 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wordcloud-generator
A wordcloud generator for nodejs## Installation
### npm
```bash
npm install wordcloud-generator
```### yarn
```bash
yarn add wordcloud-generator
```## Examples

## Usage
### String
```js
import {generate} from "wordcloud-generator";const wordstring = "The quick brown fox jumps over the lazy dog";
await generate(wordstring, true, "wordcloud.png")
```### Array of words
```js
import {generate} from "wordcloud-generator";const words = ["word1", "word2", "word3"];
await generate(words, true, "wordcloud.png")
```### Map of strings and frequencies
```js
import {generate} from "wordcloud-generator";const words = new Map()
words.set("abc",10)
words.set("def",20)
words.set("ghi",30)
await generate(words, true, "wordcloud.png")
```