wordcloud-generator
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i wordcloud-generator

Weekly Downloads

6

Version

1.0.8

License

MIT

Unpacked Size

34.3 kB

Total Files

14

Last publish

Collaborators

  • scaranaraa