Skip to content
Subhajit Sahu edited this page May 20, 2020 · 7 revisions

Updates time in asciicast file. 🏃 📦 🌔 📒

Alternatives: retime, retimeSync, retimeData.

asciinema.retime(f, [o]);
// f:             filename
// o:             options
// .input:        input text
// .inputRate:    input rate (0.1s)
// .inputDelay:   input delay (1s)
// .outputRate:   output rate (0.1s)
// .outputDelay:  output delay (0.1s)
// .delay:        initial delay (0s)
// --> promise
const asciinema = require('extra-asciinema');

async function main() {
await asciinema.retime('saved.cast', {inputDelay: 2});
// "saved.cast" is updated
}

references

Clone this wiki locally