/code2png

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

Primary LanguageJavaScriptOtherNOASSERTION

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