{"analyzedAt":"2022-06-29T00:55:50.675Z","collected":{"metadata":{"name":"remark-graphviz-svg","scope":"unscoped","version":"0.2.0","description":"A remark plugin to convert GraphViz code into SVG diagram","keywords":["remark","graphviz","svg"],"date":"2022-01-09T16:21:24.513Z","author":{"name":"DCsunset"},"publisher":{"username":"dcsunset","email":"DCsunset@protonmail.com"},"maintainers":[{"username":"dcsunset","email":"DCsunset@protonmail.com"}],"repository":{"type":"git","url":"git+https://github.com/DCsunset/remark-graphviz-svg.git"},"links":{"npm":"https://www.npmjs.com/package/remark-graphviz-svg","homepage":"https://github.com/DCsunset/remark-graphviz-svg","repository":"https://github.com/DCsunset/remark-graphviz-svg","bugs":"https://github.com/DCsunset/remark-graphviz-svg/issues"},"license":"GPL-3.0","dependencies":{"@hpcc-js/wasm":"^1.12.7","@types/svgo":"^2.6.1","rehype-parse":"^8.0.3","svgo":"^2.8.0","unified":"^10.1.1","unist-util-visit":"^4.1.0"},"devDependencies":{"@types/node":"^17.0.8","mdast":"^3.0.0","rehype-stringify":"^9.0.2","remark-parse":"^10.0.1","remark-rehype":"^10.1.0","ts-node":"^10.4.0","typescript":"^4.4.3"},"releases":[{"from":"2022-05-30T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0},{"from":"2022-03-31T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":1},{"from":"2021-12-31T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":4},{"from":"2021-06-29T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":4},{"from":"2020-06-29T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":4}],"hasTestScript":true,"hasSelectiveFiles":true,"readme":"# remark-graphviz-svg\n\n[![Version](https://img.shields.io/npm/v/remark-graphviz-svg.svg)](https://npmjs.org/package/remark-graphviz-svg)\n\nA remark plugin to convert GraphViz code into SVG diagram\n\n## Features\n\n* Custom language name for code blocks\n* Support different GraphViz [engines](https://graphviz.org/docs/layouts/)\n* SVG Optimization using [svgo](https://github.com/svg/svgo)\n\n## Installation\n\n```\nnpm install remark-graphviz-svg\n```\n\nNote: This package uses [ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).\nUse Node 12+ and ESM import syntax to use this package.\n\n## Usage\n\n```js\nimport remarkParse from \"remark-parse\";\nimport remarkRehype from \"remark-rehype\";\nimport rehypeStringify from \"rehype-stringify\";\nimport { remarkGraphvizSvg } from \"remark-graphviz-svg\";\nimport fs from \"fs\";\n\nconst processor = unified()\n  .use(remarkParse)\n  .use(remarkGraphvizSvg)\n  .use(remarkRehype)\n  .use(rehypeStringify);\n\nconst content = await processor.process(\n  fs.readFileSync(\"example.md\")\n);\n\nconsole.log(content.value);\n```\n\nSuppose the `example.md` has the following content:\n\n````md\n# Hello, world\n\n```graphviz\ndigraph {\n  A -> B\n}\n```\n````\n\nThen the output of the above code is similar to the following:\n\n```html\n<h1>Hello, world</h1>\n<p>\n  <svg><!-- generated svg --></svg>\n</p>\n```\n\n\n## Options\n\n* `language`: Render GraphViz diagrams on specific language blocks. (Default: `graphviz`)\n* `graphvizEngine`: GraphViz engine to use. See available engines [here](https://graphviz.org/docs/layouts/). (Default: `dot`)\n* `svgoOptions`: Override default svgo options. Set it to `null` to disable svgo. (Default: `defaultSvgoOptions`)\n\n## License\n\nGPL-3.0"},"npm":{"downloads":[{"from":"2022-06-28T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0},{"from":"2022-06-22T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":3},{"from":"2022-05-30T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":5},{"from":"2022-03-31T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":70},{"from":"2021-12-31T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":161},{"from":"2021-06-29T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":161}],"starsCount":0},"github":{"starsCount":2,"forksCount":1,"subscribersCount":2,"issues":{"count":0,"openCount":0,"distribution":{"3600":0,"10800":0,"32400":0,"97200":0,"291600":0,"874800":0,"2624400":0,"7873200":0,"23619600":0,"70858800":0,"212576400":0},"isDisabled":false},"contributors":[{"username":"DCsunset","commitsCount":10}],"commits":[{"from":"2022-06-22T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0},{"from":"2022-05-30T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0},{"from":"2022-03-31T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0},{"from":"2021-12-31T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":10},{"from":"2021-06-29T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":10}]},"source":{"files":{"readmeSize":1687,"testsSize":730},"badges":[{"urls":{"original":"https://img.shields.io/npm/v/remark-graphviz-svg.svg","shields":"https://img.shields.io/npm/v/remark-graphviz-svg.svg","content":"https://img.shields.io/npm/v/remark-graphviz-svg.json"},"info":{"service":"npm","type":"version","modifiers":{"type":"v"}}}]}},"evaluation":{"quality":{"carefulness":0.39499999999999996,"tests":0.6,"health":1,"branding":0.15},"popularity":{"communityInterest":6,"downloadsCount":23.333333333333332,"downloadsAcceleration":0.04472983257229832,"dependentsCount":0},"maintenance":{"releasesFrequency":0.7866438356164384,"commitsFrequency":0.6400684931506849,"openIssues":0.7,"issuesDistribution":0.7}},"score":{"final":0.6054719467148935,"detail":{"quality":0.8139709923813213,"popularity":0.03552502567584125,"maintenance":0.9967054000398645}}}