Skip to content
Subhajit Sahu edited this page Feb 3, 2021 · 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