reddit-comment-renderer

1.0.6 • Public • Published

reddit-comment-renderer

Renders a Reddit comment as a png file.

Usage

const render = require("reddit-comment-renderer");
render(
		"AWildSketchAppeared" /* Username */,
		"Lorem ipsum dolor sit amet" /* Comment */,
		"16.5k" /* Upvotes */, "8h" /* Timestamp */,
		1920 /* Image Width */,
		1080 /* Image Height */,
		3 /* "Zoom" */,
		"out.png" /* Output File */
	);

Example

Example

Expect future updates, planning on adding:

  • auto-centering + auto-scaling
  • dark mode + custom colors
  • desktop theme (currently mobile theme)
  • replies to comments

Readme

Keywords

none

Package Sidebar

Install

npm i reddit-comment-renderer

Weekly Downloads

1

Version

1.0.6

License

ISC

Unpacked Size

21.3 kB

Total Files

4

Last publish

Collaborators

  • andrewyatzkan