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

Upload recorded asciicast to asciinema. 🏃 📦 🌔 📒

Alternatives: upload, uploadSync.

asciinema.upload(f, [fn]);
// f:  filename
// fn: callback (err, asciicast URL)
// --> asciicast URL (promise)
const asciinema = require('extra-asciinema');

async function main() {
await asciinema.upload('saved.cast');
// asciicast URL
}
main();

references

Clone this wiki locally