{"id":23318866,"url":"https://github.com/ts-graphviz/prettier-plugin-dot","last_synced_at":"2025-08-22T17:31:34.109Z","repository":{"id":42631505,"uuid":"381743282","full_name":"ts-graphviz/prettier-plugin-dot","owner":"ts-graphviz","description":"✨ A prettier plugin for Graphviz Dot.","archived":false,"fork":false,"pushed_at":"2023-07-19T03:20:48.000Z","size":442,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T20:19:06.814Z","etag":null,"topics":["formatter","graphviz","graphviz-dot-language","hacktoberfest","prettier","prettier-plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/prettier-plugin-dot","language":"TypeScript","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/ts-graphviz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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},"funding":{"github":"ts-graphviz","patreon":null,"open_collective":"ts-graphviz","ko_fi":null,"tidelift":"npm/ts-graphviz","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-06-30T15:11:12.000Z","updated_at":"2023-06-03T09:25:13.000Z","dependencies_parsed_at":"2024-04-15T11:23:48.274Z","dependency_job_id":"6b9fc186-e29e-4eab-bdac-b48f80f68070","html_url":"https://github.com/ts-graphviz/prettier-plugin-dot","commit_stats":{"total_commits":42,"total_committers":4,"mean_commits":10.5,"dds":0.4285714285714286,"last_synced_commit":"5e464b6a3847d42bb2f867afe101e6ba672ada54"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ts-graphviz%2Fprettier-plugin-dot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ts-graphviz%2Fprettier-plugin-dot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ts-graphviz%2Fprettier-plugin-dot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ts-graphviz%2Fprettier-plugin-dot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ts-graphviz","download_url":"https://codeload.github.com/ts-graphviz/prettier-plugin-dot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230619700,"owners_count":18254625,"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":["formatter","graphviz","graphviz-dot-language","hacktoberfest","prettier","prettier-plugin"],"created_at":"2024-12-20T17:19:52.926Z","updated_at":"2024-12-20T17:19:56.472Z","avatar_url":"https://github.com/ts-graphviz.png","language":"TypeScript","readme":"[![NodeCI](https://github.com/ts-graphviz/prettier-plugin-dot/workflows/NodeCI/badge.svg)](https://github.com/ts-graphviz/prettier-plugin-dot/actions?workflow=NodeCI)\n[![npm version](https://badge.fury.io/js/prettier-plugin-dot.svg)](https://badge.fury.io/js/prettier-plugin-dot)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg)](#contributors)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n# Prettier for Graphviz Dot\n\nprettier-plugin-dot is a prettier plugin for Graphviz Dot.\n\nFormat your Dot using Prettier.\n\n## How it works? 🤔\n\nA Prettier plugin must first parse the source code of the target language into a traversable data structure (Usually an **A**bstract **S**yntax **T**ree)\nand then print out that data structure in a \"pretty\" style.\n\nThe Graphviz Dot AST generated by [ts-graphviz](https://github.com/ts-graphviz/ts-graphviz) implemented in JavaScript using the [peggy](https://github.com/peggyjs/peggy).\nWhat this means is that unlike many other prettier plugins, prettier-plugin-dot has no additional runtime pre-requisites (e.g: Python executable). It could even be used inside a browser.\n\n## Getting started ✨\n\nIf you're using the npm or yarn CLI, then add the plugin by:\n\n[![NPM](https://nodei.co/npm/prettier-plugin-dot.png)](https://nodei.co/npm/prettier-plugin-dot/)\n\n```bash\n# yarn\n$ yarn add -D prettier prettier-plugin-dot\n# or npm\n$ npm install --save-dev prettier prettier-plugin-dot\n```\n\nThe prettier executable is now installed and ready for use:\n\n```bash\n$ yarn run prettier --write '**/*.dot'\n# or\n$ npx prettier --write '**/*.dot'\n```\n\n## Example 📑\n\n### Input ⬅️\n\n```dot\ndigraph G {Hello-\u003eWorld}\n```\n\n### Output ➡️\n\n```dot\ndigraph G {\n  Hello -\u003e World;\n}\n```\n\n## Related Projects 💫\n\nRelated projects can be found at [**ts-graphviz** GitHub Organization](https://github.com/ts-graphviz).\n\nThe TypeScript/JavaScript ecosystem provides a variety of OSS with the goal of making Graphviz more connected and easier to use.\n\n## Contributors 👥\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://blog.kamiazya.tech/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/35218186?v=4?s=100\" width=\"100px;\" alt=\"Yuki Yamazaki\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eYuki Yamazaki\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/ts-graphviz/prettier-plugin-dot/commits?author=kamiazya\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/ts-graphviz/prettier-plugin-dot/commits?author=kamiazya\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"https://github.com/ts-graphviz/prettier-plugin-dot/commits?author=kamiazya\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://thewilkybarkid.dev\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1784740?v=4?s=100\" width=\"100px;\" alt=\"Chris Wilkinson\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eChris Wilkinson\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/ts-graphviz/prettier-plugin-dot/issues?q=author%3Athewilkybarkid\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://safareli.github.io/resume/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1932383?v=4?s=100\" width=\"100px;\" alt=\"Irakli Safareli\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eIrakli Safareli\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#ideas-safareli\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/thought2\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/18749447?v=4?s=100\" width=\"100px;\" alt=\"Michael Bock\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMichael Bock\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/ts-graphviz/prettier-plugin-dot/issues?q=author%3Athought2\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n## How to Contribute 💪\n\nThe easiest way to contribute is to use the library and star [repository](https://github.com/ts-graphviz/prettier-plugin-dot).\n\n### Questions 💭\n\nFeel free to ask questions on [GitHub Discussions](https://github.com/ts-graphviz/prettier-plugin-dot/discussions).\n\n### Report bugs / request additional features 💡\n\nPlease register at [GitHub Issues](https://github.com/ts-graphviz/prettier-plugin-dot/issues/new/choose).\n\n### Development / Bug Fixes 🧑‍💻\n\nSee [CONTRIBUTING.md](https://github.com/ts-graphviz/prettier-plugin-dot/blob/main/CONTRIBUTING.md).\n\n### Financial Support 💸\n\nPlease support core member [kamiazya](https://github.com/sponsors/kamiazya).\n\n\u003e **Note** Even just a dollar is enough motivation for me to develop 😊\n\n## License ⚖️\n\nThis software is released under the MIT License, see [LICENSE](./LICENSE).\n","funding_links":["https://github.com/sponsors/ts-graphviz","https://opencollective.com/ts-graphviz","https://tidelift.com/funding/github/npm/ts-graphviz","https://github.com/sponsors/kamiazya"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fts-graphviz%2Fprettier-plugin-dot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fts-graphviz%2Fprettier-plugin-dot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fts-graphviz%2Fprettier-plugin-dot/lists"}