Skip to content

duckyies/wordcloud-generator

Repository files navigation

wordcloud-generator

A wordcloud generator for nodejs

Installation

npm

npm install wordcloud-generator

yarn

yarn add wordcloud-generator

Examples

alt text

Usage

String

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

import {generate} from "wordcloud-generator";

const words = ["word1", "word2", "word3"];
await generate(words, true, "wordcloud.png")

Map of strings and frequencies

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")

About

A wordcloud generator for nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published