-
Notifications
You must be signed in to change notification settings - Fork 0
recSync
Subhajit Sahu edited this page Feb 3, 2021
·
8 revisions
Records terminal session. ๐ฆ ๐บ ๐ ๐ผ ๐ ๐ ๐ฐ ๐
asciinema.recSync(f, [o]);
// f: output filename
// o: options
// .input: input javascript file
// .append: append to file (false)
// .raw: save in raw format (false)
// .overwrite: overwrite existing file (true)
// .command: command to record (cat ${input} | node -i)
// .env: environment variables
// .title: file title
// .idleTimeLimit: maximum idle tile
// โ asciicast file
const asciinema = require("extra-asciinema");
asciinema.recSync("saved.cast", {input: "example.js"});
// runs example.js interactively in node.js, saves "saved.cast"