{"id":13453725,"url":"https://github.com/marionebl/svg-term-cli","last_synced_at":"2025-05-14T01:03:08.736Z","repository":{"id":37692572,"uuid":"112016784","full_name":"marionebl/svg-term-cli","owner":"marionebl","description":"Share terminal sessions via SVG and CSS","archived":false,"fork":false,"pushed_at":"2024-05-01T23:04:21.000Z","size":407,"stargazers_count":3608,"open_issues_count":45,"forks_count":121,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-03T01:30:26.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marionebl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-25T16:08:35.000Z","updated_at":"2025-03-31T21:06:43.000Z","dependencies_parsed_at":"2024-06-18T12:27:32.015Z","dependency_job_id":"aed166a3-e974-4fa8-9460-4aa9f95e0926","html_url":"https://github.com/marionebl/svg-term-cli","commit_stats":{"total_commits":91,"total_committers":8,"mean_commits":11.375,"dds":"0.15384615384615385","last_synced_commit":"fa98a053ce8d0549410778d4d04b51f1facf965f"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marionebl%2Fsvg-term-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marionebl%2Fsvg-term-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marionebl%2Fsvg-term-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marionebl%2Fsvg-term-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marionebl","download_url":"https://codeload.github.com/marionebl/svg-term-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154356,"owners_count":21056538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T08:00:46.046Z","updated_at":"2025-04-10T03:39:25.557Z","avatar_url":"https://github.com/marionebl.png","language":"JavaScript","funding_links":[],"categories":["Packages","JavaScript","包","目录","others","Command-line apps","Awesome Tools","Resources"],"sub_categories":["Command-line apps","命令行程序","命令行应用","EduTech","Command-Line Tools"],"readme":"\u003e Share terminal sessions as razor-sharp animated SVG everywhere\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"600\" src=\"https://cdn.rawgit.com/marionebl/svg-term-cli/1250f9c1/examples/parrot.svg\"\u003e\n\u003c/p\u003e\n\n\u003e Example generated with `svg-term --cast 113643 --out examples/parrot.svg --window --no-cursor --from=4500`\n\n# svg-term-cli\n\n* 💄 Render asciicast to animated SVG\n* 🌐 Share asciicasts everywhere (sans JS)\n* 🤖 Style with common [color profiles](https://github.com/marionebl/term-schemes#supported-formats)\n\n## Install\n\n1. Install asciinema via: https://asciinema.org/docs/installation\n2. Install svg-term-cli:\n      ```sh\n      npm install -g svg-term-cli\n      ```\n\n## Usage\n\nGenerate the `parrot.svg` example from asciicast at \u003chttps://asciinema.org/a/113643\u003e\n\n```\nsvg-term --cast=113643 --out examples/parrot.svg --window\n```\n\n## Interface\n\n```\nλ svg-term --help\n\n  Share terminal sessions as razor-sharp animated SVG everywhere\n\n  Usage\n    $ svg-term [options]\n\n  Options\n    --at            timestamp of frame to render in ms [number]\n    --cast          asciinema cast id to download [string], required if no stdin provided [string]\n    --command       command to record [string]\n    --from          lower range of timeline to render in ms [number]\n    --height        height in lines [number]\n    --help          print this help [boolean]\n    --in            json file to use as input [string]\n    --no-cursor     disable cursor rendering [boolean]\n    --no-optimize   disable svgo optimization [boolean]\n    --out           output file, emits to stdout if omitted, [string]\n    --padding       distance between text and image bounds, [number]\n    --padding-x     distance between text and image bounds on x axis [number]\n    --padding-y     distance between text and image bounds on y axis [number]\n    --profile       terminal profile file to use, requires --term [string]\n    --term          terminal profile format [iterm2, xrdb, xresources, terminator, konsole, terminal, remmina, termite, tilda, xcfe], requires --profile [string]\n    --to            upper range of timeline to render in ms [number]\n    --width         width in columns [number]\n    --window        render with window decorations [boolean]\n\n  Examples\n    $ cat rec.json | svg-term\n    $ svg-term --cast 113643\n    $ svg-term --cast 113643 --out examples/parrot.svg\n```\n\n## Rationale\n\nReplace GIF asciicast recordings where you can not use the [asciinema player](https://asciinema.org/), e.g. `README.md` files on GitHub and the npm registry.\n\nThe 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!\n\n## Related\n\n* [asciinema/asciinema](https://github.com/asciinema/asciinema) - Terminal session recorder\n* [derhuerst/asciicast-to-svg](https://github.com/derhuerst/asciicast-to-svg) - Render frames of Asciicasts as SVGs\n* [marionebl/svg-term](https://github.com/marionebl/svg-term) - Render asciicast to animated SVG\n* [marionebl/term-schemes](https://github.com/marionebl/term-schemes) - Parse and normalize common terminal emulator color schemes\n\n## Gallery\n\n* [marionebl/commitlint](https://github.com/marionebl/commitlint)\n* [marionebl/share-cli](https://github.com/marionebl/share-cli)\n* [marionebl/remote-share-cli](https://github.com/marionebl/remote-share-cli)\n\n## License\n\nCopyright 2017. Released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarionebl%2Fsvg-term-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarionebl%2Fsvg-term-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarionebl%2Fsvg-term-cli/lists"}