{"id":22707169,"url":"https://github.com/tutv/svgb","last_synced_at":"2025-10-23T18:04:40.960Z","repository":{"id":57375667,"uuid":"265311207","full_name":"tutv/svgb","owner":"tutv","description":"Turn your svg file to buffer.","archived":false,"fork":false,"pushed_at":"2020-09-26T14:48:48.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T08:36:44.201Z","etag":null,"topics":["buffer","svg"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/svgb","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tutv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-19T17:10:22.000Z","updated_at":"2020-09-26T14:48:50.000Z","dependencies_parsed_at":"2022-09-07T13:40:19.663Z","dependency_job_id":null,"html_url":"https://github.com/tutv/svgb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tutv%2Fsvgb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tutv%2Fsvgb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tutv%2Fsvgb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tutv%2Fsvgb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tutv","download_url":"https://codeload.github.com/tutv/svgb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246243550,"owners_count":20746308,"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":["buffer","svg"],"created_at":"2024-12-10T10:11:40.524Z","updated_at":"2025-10-23T18:04:40.878Z","avatar_url":"https://github.com/tutv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svgb\n\nGenerate svg to buffer with template.\n\n### Installation\n```\nnpm install svgb\n```\n\n### Example code\n```javascript\nconst svgb = require('svgb')\nconst path = require('path')\n\n\nsetImmediate(async () =\u003e {\n    const svgFile = path.join(__dirname, 'number.svg')\n    \n    try {\n        const artwork = await svgb.toBuffer(svgFile, {number: 1})\n        console.log(artwork)\n    } catch (e) {\n        console.log(\"ERROR\", e)\n    }\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftutv%2Fsvgb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftutv%2Fsvgb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftutv%2Fsvgb/lists"}