프로젝트
GitHub에서 보기
marionebl/svg-term-cli
소개
SVG와 CSS로 터미널 세션을 공유
창작 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalShare terminal sessions as razor-sharp animated SVG everywhere
Example generated with
svg-term --cast 113643 --out examples/parrot.svg --window --no-cursor --from=4500
svg-term-cli
- 💄 Render asciicast to animated SVG
- 🌐 Share asciicasts everywhere (sans JS)
- 🤖 Style with common color profiles
Install
- Install asciinema via: https://asciinema.org/docs/installation
- Install svg-term-cli:
npm install -g svg-term-cli
Usage
Generate the parrot.svg example from asciicast at https://asciinema.org/a/113643
svg-term --cast=113643 --out examples/parrot.svg --window
Interface
λ svg-term --help
Share terminal sessions as razor-sharp animated SVG everywhere
Usage
$ svg-term [options]
Options
--at timestamp of frame to render in ms [number]
--cast asciinema cast id to download [string], required if no stdin provided [string]
--command command to record [string]
--from lower range of timeline to render in ms [number]
--height height in lines [number]
--help print this help [boolean]
--in json file to use as input [string]
--no-cursor disable cursor rendering [boolean]
--no-optimize disable svgo optimization [boolean]
--out output file, emits to stdout if omitted, [string]
--padding distance between text and image bounds, [number]
--padding-x distance between text and image bounds on x axis [number]
--padding-y distance between text and image bounds on y axis [number]
--profile terminal profile file to use, requires --term [string]
--term terminal profile format [iterm2, xrdb, xresources, terminator, konsole, terminal, remmina, termite, tilda, xcfe], requires --profile [string]
--to upper range of timeline to render in ms [number]
--width width in columns [number]
--window render with window decorations [boolean]
Examples
$ cat rec.json | svg-term
$ svg-term --cast 113643
$ svg-term --cast 113643 --out examples/parrot.svg
Rationale
Replace GIF asciicast recordings where you can not use the asciinema player, e.g. README.md files on GitHub and the npm registry.
The image at the top of this README is an example. See how sharp the text looks, even when you zoom in? That’s because it’s an SVG!
Related
- asciinema/asciinema - Terminal session recorder
- derhuerst/asciicast-to-svg - Render frames of Asciicasts as SVGs
- marionebl/svg-term - Render asciicast to animated SVG
- marionebl/term-schemes - Parse and normalize common terminal emulator color schemes
Gallery
License
Copyright 2017. Released under the MIT license.
관련 프로젝트 살펴보기
불러오는 중…