rjz / code2png

Turn code snippets into beautiful PNGs from the comfort of the command line

Home Page:https://rjzaworski.com/2017/11/code-to-png

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

code2png

Beautiful code screenshots without leaving the command line. Plays well with HTML-filtering input forms, Twitter, and all kinds of groovy things like that.

$ code2png index.js -o readme.png

Installation

$ npm install -g code2png

Usage

Pass a source file by name:

$ code2png foo.c

...or pipe it in:

$ cat foo.c | code2png -o foo.png

TODO

  • Support additional languages, themes

License

MIT

About

Turn code snippets into beautiful PNGs from the comfort of the command line

https://rjzaworski.com/2017/11/code-to-png

License:Other


Languages

Language:JavaScript 95.3%Language:CSS 4.7%