Share terminal sessions via SVG and CSS
svg-term
- Render asciinema asciicast to animated SVG
- Use custom themes
- Share asciicast everywhere
npm install svg-term
Usage
const fs = ;const promisify = ;const readFile = ;const render = ; async { const data = Stringawait ; const svg = ; // => <svg>...</svg>}
API
// `input` can be string/object of v1 or v2:// https://github.com/asciinema/asciinema/blob/develop/doc// or an already loaded cast:// https://github.com/marionebl/load-asciicast//// `options` won't take effect if `input` is an already loaded cast.renderinput: string, options?: Options: string ;