Skip to content

mathiasbynens/svg-term-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svg-term-cli

  • 💄 Render asciicast to animated SVG
  • 🌐 Use asciicast from disk or asciinema.com
  • 🤖 Pick up iterm2 and Terminal color scheme automatically

Install

npm install -g svg-term-cli

Usage

Generate the parrot.svg example from asciicast

svg-term --cast=113643 --out examples/parrot.svg --frame

Interface

$ svg-term --help

Usage
    $ svg-term [options]

  Options
    --cast          asciinema cast id to download [string], required if no stdin provided
    --out           output file, emits to stdout if omitted
    --profile       terminal profile file to use [file], requires --term
    --term          terminal profile format, requires [iterm2, xrdb, xresources, terminator, konsole, terminal, remmina, termite, tilda, xcfe] --profile
    --frame         wether to frame the result with an application window [boolean]
    --width         width in columns [number]
    --height        height in lines [number]
    --help          print this help [boolean]

  Examples
    $ echo rec.json | svg-term
    $ svg-term --cast 113643

License

Copyright 2017. Released under the MIT license.

About

Share terminal sessions via SVG and CSS

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.0%
  • TypeScript 12.0%