snapterm

Take screenshots of your terminal

Usage no npm install needed!

<script type="module">
  import snapterm from 'https://cdn.skypack.dev/snapterm';
</script>

README

snapterm

📷 Take screenshots of your terminal

Usage

$ yarn add snapterm
const snapterm = require("snapterm");

if (somethingHappened()) {
  snapterm("screenshot-of-something");
  // => ~/Desktop/screenshot-of-something.png
}

CLI

$ yarn global add snapterm
$ snapterm oh-no

Caveats

snapterm only works on macOS with iTerm2.app and Terminal.app. Does not work with Hyper.

License

MIT