{"id":19084227,"url":"https://github.com/d3-node/d3node-output","last_synced_at":"2025-04-30T09:03:19.594Z","repository":{"id":18604165,"uuid":"84696550","full_name":"d3-node/d3node-output","owner":"d3-node","description":"simple way to export d3-node instance to png/jpg, svg \u0026 html files","archived":false,"fork":false,"pushed_at":"2022-04-08T03:08:04.000Z","size":30,"stargazers_count":16,"open_issues_count":2,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-14T18:54:09.431Z","etag":null,"topics":[],"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/d3-node.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":"2017-03-12T03:19:03.000Z","updated_at":"2022-11-22T19:30:30.000Z","dependencies_parsed_at":"2022-08-07T09:00:49.979Z","dependency_job_id":null,"html_url":"https://github.com/d3-node/d3node-output","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-output","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-output/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-output/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-output/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d3-node","download_url":"https://codeload.github.com/d3-node/d3node-output/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223780008,"owners_count":17201287,"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-11-09T02:50:31.100Z","updated_at":"2024-11-09T02:50:31.834Z","avatar_url":"https://github.com/d3-node.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# D3Node-output\n\nUsed in examples to export a d3node instance to html, svg, \u0026 png files\n\n## Install\n\n```bash\nnpm install d3node-output\n```\n\n### Usage\n```js\nconst output = require('d3node-output')\nconst voronoi = require('d3node-voronoi');\nconst data = new Array(99);\n\n// crop your png to a custom size\n// defaults to the size of your svg if not defined\nconst options = {width: 100, height: 200};\n\n// output files to /dist dir\noutput('./dist/myVoronoi', voronoi(data), options, callback);\n```\n\n### PaaS usage:\n- Heroku: set buildpack to: https://github.com/mikeraimondi/heroku-buildpack-google-chrome\n- AWS Lambda: tbd\n- Azure functions: tbd\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n### LICENSE\n\n[MIT](LICENSE) \u0026copy; [d3-node](https://github.com/d3-node)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3-node%2Fd3node-output","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd3-node%2Fd3node-output","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3-node%2Fd3node-output/lists"}