UNPKG

1.33 kBMarkdownView Raw
1<p align="center">
2 <img width="600" height="370" src="https://cdn.rawgit.com/marionebl/svg-term-cli/1bb61eca/examples/parrot.svg">
3</p>
4
5# svg-term-cli
6
7* 💄 Render asciicast to animated SVG
8* 🌐 Use asciicast from disk or asciinema.com
9* 🤖 Pick up iterm2 and Terminal color scheme automatically
10
11## Install
12
13```
14npm install -g svg-term-cli
15```
16
17## Usage
18
19Generate the `parrot.svg` example from [asciicast](https://asciinema.org/a/113643)
20
21```
22svg-term --cast=113643 --out examples/parrot.svg --frame
23```
24
25## Interface
26
27```
28$ svg-term --help
29
30Usage
31 $ svg-term [options]
32
33 Options
34 --cast asciinema cast id to download [string], required if no stdin provided
35 --out output file, emits to stdout if omitted
36 --profile terminal profile file to use [file], requires --term
37 --term terminal profile format, requires [iterm2, xrdb, xresources, terminator, konsole, terminal, remmina, termite, tilda, xcfe] --profile
38 --frame wether to frame the result with an application window [boolean]
39 --width width in columns [number]
40 --height height in lines [number]
41 --help print this help [boolean]
42
43 Examples
44 $ echo rec.json | svg-term
45 $ svg-term --cast 113643
46```
47
48## License
49
50Copyright 2017. Released under the MIT license.