Skip to content

recSync

Subhajit Sahu edited this page Feb 3, 2021 · 8 revisions

Records terminal session. ๐Ÿ“ฆ ๐Ÿ˜บ ๐Ÿƒ ๐Ÿ“ผ ๐ŸŒ” ๐Ÿ“œ ๐Ÿ“ฐ ๐Ÿ“˜

Alternatives: rec, recSync.


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"


References

Clone this wiki locally