{"id":18986968,"url":"https://github.com/synesenom/dl","last_synced_at":"2026-06-18T01:31:59.311Z","repository":{"id":86463485,"uuid":"75281332","full_name":"synesenom/dl","owner":"synesenom","description":"Download helper for SVG graphics","archived":false,"fork":false,"pushed_at":"2017-06-24T09:11:40.000Z","size":2978,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-11T01:18:12.713Z","etag":null,"topics":["eps","export","pdf","svg"],"latest_commit_sha":null,"homepage":"","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/synesenom.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-01T10:22:35.000Z","updated_at":"2021-02-07T18:28:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"68aa2a7a-4725-4f60-8c49-b44e43171707","html_url":"https://github.com/synesenom/dl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/synesenom/dl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synesenom%2Fdl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synesenom%2Fdl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synesenom%2Fdl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synesenom%2Fdl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synesenom","download_url":"https://codeload.github.com/synesenom/dl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synesenom%2Fdl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34472822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["eps","export","pdf","svg"],"created_at":"2024-11-08T16:37:55.025Z","updated_at":"2026-06-18T01:31:59.298Z","avatar_url":"https://github.com/synesenom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/synesenom/dl.svg?branch=master)](https://travis-ci.org/synesenom/dl)\n\n# Description\nLibrary for exporting SVG content from the DOM.\n\n\n# Requirements\n`d3`\n\n\n# Limitations\nOnly works with styles defined inline in the SVG for every single element.\n\n\n# API reference\n- [png](#png)\n- [eps](#eps)\n- [json](#json)\n\n\n## png\n```\ndl.png(svg, filename, options)\n```\nExports a specific SVG content as a PNG image.\n\n| argument | description |\n| --- | --- |\n| `svg` | Selector for the SVG element to export, either the SVG element itself, its ID or class. |\n| `filename` | Name of the exported PNG. |\n| `options` | Additional options for the PNG. Possible keys: `width`, `height`. |\n\n\n## eps\n```\ndl.eps(svg, filename)\n```\nExports a specific SVG content as an EPS image.\nSupported shapes: `line`, `circle`.\nTransparency is not supported, only alpha-blending with background.\n\n| argument | description |\n| --- | --- |\n| `svg` | Selector for the SVG element to export, either the SVG element itself, its ID or class. |\n| `filename` | Name of the exported EPS. |\n\n\n## json\n```\ndl.json(svg, filename)\n```\nExports the specified SVG content to a graph JSON file.\nThe SVG content is expected to be a network drawn with d3, that is, only `circle` and `line` elements are exported.\n\n| argument | description |\n| --- | --- |\n| `svg` | Selector for the SVG element to export, either the SVG itself, its ID or class. |\n| `filename` | Name of the exported JSON. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynesenom%2Fdl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynesenom%2Fdl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynesenom%2Fdl/lists"}