Skip to content
Subhajit Sahu edited this page Feb 3, 2021 · 7 revisions

Uploads recorded asciicast to asciinema.org site. ๐Ÿ“ฆ ๐Ÿ˜บ ๐Ÿƒ ๐Ÿ“ผ ๐ŸŒ” ๐Ÿ“œ ๐Ÿ“ฐ ๐Ÿ“˜

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