-
Notifications
You must be signed in to change notification settings - Fork 0
recSync
wolfram77 edited this page Apr 4, 2020
·
8 revisions
Record terminal session.
asciinema.recSync([f], o, [o.input], [o.append], [o.raw], [o.overwrite], [o.command], [o.env], [o.title], [o.idleTimeLimit]);
// 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"