screenshot_codebase

0.3.2 • Public • Published

screenshot_codebase

Want a screenshot of a codebase? Want to compare the size of two codebases visually? Here ya go.

Installation

npm install -g screenshot_codebase

If you don't have npm, install node to get it.

Basic Usage

  • screenshot_codebase
    • Creates output.png with a screenshot of the current directory, travelling downwards, with standard excludes, the default midnight theme, and automatic highlighting turned on.
  • screenshot_codebase -h off -c midnight -o final.png
    • Creates final.png with highlighting turned off, in the midnight theme

Arguments

  • -a allow cosmetic padding
  • -c color theme
  • -f font
  • -h auto|off|
  • -l location to start from
  • -o output filename
  • -r recursively scan downwards (default true; accepts 0/1, true/false, on/off, y/n)
  • -s font size (default 4px)
  • -t type override comma-separated list of key/val pairs for ext = lang (eg for perl vs prolog as .pl)
  • -w word wrap at n (negative means crop instead)
  • -x exclude comma-separated list of extensions
  • -1 single image screenshots (treats -o as a directory to create name instead)

Package Sidebar

Install

npm i screenshot_codebase

Weekly Downloads

0

Version

0.3.2

License

MIT

Last publish

Collaborators

  • stonecypher