Skip to content

recSync

Subhajit Sahu edited this page May 20, 2020 · 8 revisions

Record 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