Turn code snippets into beautiful PNGs from the comfort of the command line
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
css
src
.gitignore
CONTRIBUTING.md
LICENSE
README.md
index.js
package-lock.json
package.json
readme.png

README.md

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