wordcloud-generator
v1.0.8
Published
A wordcloud generator for nodejs
Downloads
22
Readme
wordcloud-generator
A wordcloud generator for nodejs
Installation
npm
npm install wordcloud-generator
yarn
yarn add wordcloud-generator
Examples
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")