{"id":16049232,"url":"https://github.com/ayan4m1/svg-fab","last_synced_at":"2025-04-05T07:20:42.684Z","repository":{"id":47972730,"uuid":"206564067","full_name":"ayan4m1/svg-fab","owner":"ayan4m1","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-25T12:13:01.000Z","size":820,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T15:44:50.328Z","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/ayan4m1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-05T12:56:50.000Z","updated_at":"2022-01-02T01:14:25.000Z","dependencies_parsed_at":"2022-08-12T15:32:34.833Z","dependency_job_id":null,"html_url":"https://github.com/ayan4m1/svg-fab","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayan4m1%2Fsvg-fab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayan4m1%2Fsvg-fab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayan4m1%2Fsvg-fab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayan4m1%2Fsvg-fab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayan4m1","download_url":"https://codeload.github.com/ayan4m1/svg-fab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247301024,"owners_count":20916426,"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-10-09T00:15:12.753Z","updated_at":"2025-04-05T07:20:42.662Z","avatar_url":"https://github.com/ayan4m1.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svg-fab\n\nThis utility will convert a Sketch-exported SVG into a `\u003csymbol\u003e` element suitable for use as an icon.\n\n## Usage\n\nThe source SVG must be composed of a single path - use the \"Layer \u003e Convert to Outlines\" command in Sketch.\n\nOnce you have your SVG, install the utility:\n\n```sh\nnpm install -g svg-fab\n```\n\nThen, specify a name for the symbol and the path to the SVG like so:\n\n```sh\nsvg-fab -n expand my-expand-icon.svg\n```\n\nThe utility prints its output to stdout. You can copy and paste the `\u003csymbol\u003e` element it generates into your sprite sheet.\n\nThe name argument is automatically [slugified](https://github.com/simov/slugify) - wrap it in double quotes if it contains spaces. For example:\n\n```sh\nsvg-fab -n \"my extremely long, convoluted, and entirely unfriendly icon name\" my-icon.svg\n```\n\nIn this example the exported `\u003csymbol\u003e` will have an `id` attribute of `icon-my-extremely-long-convoluted-and-entirely-unfriendly-icon-name`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayan4m1%2Fsvg-fab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayan4m1%2Fsvg-fab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayan4m1%2Fsvg-fab/lists"}