upload - nodef/extra-asciinema GitHub Wiki

Uploads recorded asciicast to asciinema.org site. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

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