@extra-asciinema/cat.min

Prints full output of recorded asciicast to a terminal. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Usage no npm install needed!

<script type="module">
  import extraAsciinemaCatMin from 'https://cdn.skypack.dev/@extra-asciinema/cat.min';
</script>

README

Prints full output of recorded asciicast to a terminal. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Alternatives: cat, catSync.

This is part of package extra-asciinema.

This is browserified, minified version of @extra-asciinema/cat.
It is exported as global variable asciinema_cat.
CDN: unpkg, jsDelivr.


asciinema.cat(f, [fn]);
// f:  filename
// fn: callback (err, full output)
// → full output (including all escape sequences)
const asciinema = require("extra-asciinema");

async function main() {
await asciinema.cat("saved.cast");
// output in "saved.cast" file
}
main();


References