Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 675 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 675 Bytes

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