{"id":15406755,"url":"https://github.com/dannyben/victor-cli","last_synced_at":"2025-04-17T22:57:20.776Z","repository":{"id":37007004,"uuid":"259127673","full_name":"DannyBen/victor-cli","owner":"DannyBen","description":"Command line for Victor, the Ruby SVG library","archived":false,"fork":false,"pushed_at":"2025-02-06T10:42:36.000Z","size":162,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T21:05:32.430Z","etag":null,"topics":["gem","ruby","svg","svg-builder"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/DannyBen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2020-04-26T20:34:41.000Z","updated_at":"2025-02-06T10:42:39.000Z","dependencies_parsed_at":"2024-01-28T15:55:13.118Z","dependency_job_id":null,"html_url":"https://github.com/DannyBen/victor-cli","commit_stats":{"total_commits":122,"total_committers":2,"mean_commits":61.0,"dds":"0.10655737704918034","last_synced_commit":"b0f1011d7d2f9e575ca8908299ddcdb1e8f5e443"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fvictor-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fvictor-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fvictor-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fvictor-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DannyBen","download_url":"https://codeload.github.com/DannyBen/victor-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241367887,"owners_count":19951444,"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":["gem","ruby","svg","svg-builder"],"created_at":"2024-10-01T16:25:13.683Z","updated_at":"2025-03-01T12:33:04.178Z","avatar_url":"https://github.com/DannyBen.png","language":"Ruby","readme":"# Victor CLI\n\n[![Gem Version](https://badge.fury.io/rb/victor-cli.svg)](https://badge.fury.io/rb/victor-cli)\n[![Build Status](https://github.com/DannyBen/victor-cli/workflows/Test/badge.svg)](https://github.com/DannyBen/victor-cli/actions?query=workflow%3ATest)\n[![Maintainability](https://api.codeclimate.com/v1/badges/ab7a46b42d268e374ee1/maintainability)](https://codeclimate.com/github/DannyBen/victor-cli/maintainability)\n\n---\n\nCommand line interface for [Victor][victor], the SVG Library.\n\n---\n\n## Installation\n\n    $ gem install victor-cli\n\n## Usage\n\n### `init`: Create a sample Ruby file\n\nRun this command to create an initial sample file:\n\n```shell\n$ victor init example\n```\n\n### `render`: Render Ruby to SVG\n\nGiven this Ruby code:\n\n```ruby\n# example.rb\nsetup width: 140, height: 100\n\nbuild do\n  circle cx: 50, cy: 50, r: 30, fill: \"yellow\"\nend\n```\n\nRun this command:\n```shell\n$ victor render example.rb --template minimal\n```\n\nTo generate this code:\n\n```xml\n\u003csvg width=\"140\" height=\"100\"\u003e\n  \u003ccircle cx=\"50\" cy=\"50\" r=\"30\" fill=\"yellow\"/\u003e\n\u003c/svg\u003e\n```\n\n### `convert`: Convert SVG to Ruby\n\nGiven this SVG file:\n\n```xml\n\u003c!-- example.svg --\u003e\n\u003csvg width=\"140\" height=\"100\"\u003e\n  \u003ccircle cx=\"50\" cy=\"50\" r=\"30\" fill=\"yellow\"/\u003e\n\u003c/svg\u003e\n```\n\nRun this command:\n\n```shell\n$ victor convert example.svg\n```\n\nTo generate this Ruby code:\n\n```ruby\nsetup width: 140, height: 100\n\nbuild do\n  circle cx: 50, cy: 50, r: 30, fill: \"yellow\"\nend\n\n```\n---\n\n[victor]: https://github.com/DannyBen/victor\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannyben%2Fvictor-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdannyben%2Fvictor-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannyben%2Fvictor-cli/lists"}