extra-asciinema.web 1.0.37
Install from the command line:
Learn more about npm packages
$ npm install @nodef/extra-asciinema.web@1.0.37
Install via package.json:
"@nodef/extra-asciinema.web": "1.0.37"
About this version
asciinema is a terminal screen recorder.
📦 NPM,
:smiley_cat: GitHub,
:running: RunKit,
:moon: Minified,
:scroll: Files,
:newspaper: JSDoc,
:blue_book: Wiki.
With this package you can auto-generate terminal recordings for Node.js examples through asciinema programmatically. But you need to install asciinema first!
Stability: Experimental.
const asciinema = require("extra-asciinema");
// import * as asciinema from "extra-asciinema";
asciinema.recSync("saved.cast", {input: "example.js"});
// runs example.js interactively in node.js, saves "saved.cast"
asciinema.retimeSync("saved.cast", {inputDelay: 2});
// "saved.cast" is updated
asciinema.uploadSync("saved.cast");
// asciicast URL
Method | Action |
---|---|
rec | Records terminal session. |
cat | Prints full output of recorded asciicast to a terminal. |
retime | Updates time in asciicast file. |
upload | Uploads recorded asciicast to asciinema.org site. |