{"name":"ts-graphviz","version":"1.5.4-dev.2cdf4fa1a","keywords":["graphviz","dot"],"author":{"name":"kamiazya","email":"yuki@kamiazya.tech"},"license":"MIT","_id":"ts-graphviz@1.5.4-dev.2cdf4fa1a","maintainers":[{"name":"kamiazya","email":"yuki@kamiazya.tech"}],"homepage":"https://ts-graphviz.github.io/ts-graphviz/","bugs":{"url":"https://github.com/ts-graphviz/ts-graphviz/issues"},"dist":{"shasum":"07423445a61ece1e24a3645844999c30ca15fae8","tarball":"http://registry-npm.ywwl.com/ts-graphviz/download/ts-graphviz-1.5.4-dev.2cdf4fa1a.tgz","fileCount":36,"integrity":"sha512-DNi+ZIiWt2cCS/KjZMiMYzv6YiVRteuM9C9UIt0m446wcdA1DJ+dSzWaHD6VEF6BaC15/IdasISXBHIDt8l/eA==","signatures":[{"sig":"MEQCIDKHaeXAMDebO4IyG7oZmCNxcHH6Cagjgrj3ZbqcqNiqAiAkB+XqoZ1vIcJeic+ril0pf7EO3GTN0eaXDmDyqoWfLw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":570627,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj36cjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmotZg//ee3TMRfFGdEyMJ4fcQ272vHMCH0fbX6n7swjPxrwF/jzGyJH\r\nuN6ZRgB95tEDdbFs+aF/2NH7ycs0qYxV46fhqtyh7U0D/F9uMziiiLwoLdcL\r\ntt4zJmq0wHwO/VpoLTyfXELhcMqd/FoJWJXaBPtkjG3RU+3S0LbrkJw+RNoc\r\nkIaiKPCI9mCc+tCaaZza70kQ+xL4Z7D1kKsCeh5zSG7BHw/vcHXOtWXVAlkr\r\nY9P1adn9Fy1JElyfx1Om5z2Y8cLMVadH/11Gn+vpurAszBlP9J8JzBrcJjHQ\r\noOsLRk6VPeA7Gix9g9iZ8eywYY2RgSnUCyhnUW5sHkJE4BWJBjddrT4M2YR+\r\not1FFC8e/aPEN5P+L34LuNImQx6C4QST2up/V1kTkWZ4E/o597iwSLIXKiuz\r\n6TmFQIdeCeLWFj5kwSjGj8dhP5QwNHbgICaXzJJi+MwP1NktwuUcN7rN+DdV\r\n3S3ieGc09JhbzIH/xhA+7+qJ4ljLkMplZOkru/nJM3E/v/jnOXlR9v/hBMlV\r\nVtNV3ZRp3rKf0O5pB+teWCXeHK3dm3U4uZoVI7bE2Kup4A5blh8FdNwKR+zT\r\nqfijv0TxGcmPYSisflYHCObqbRSFUB8p4j1RBTTci2p1/zqEXlKIyLaS/w7m\r\n9v+2xU9W0H/+86mqKCESn8wO8ksAWz2j58Y=\r\n=iUkC\r\n-----END PGP SIGNATURE-----\r\n","size":109515,"noattachment":false,"key":"/ts-graphviz/-/ts-graphviz-1.5.4-dev.2cdf4fa1a.tgz"},"main":"./lib/index.cjs","type":"module","types":"lib/index.d.ts","module":"./lib/index.js","readme":"[![Codacy Badge](https://api.codacy.com/project/badge/Grade/d6485f9858ed4b3e8ef76611a2896bc4)](https://app.codacy.com/gh/ts-graphviz/ts-graphviz?utm_source=github.com&utm_medium=referral&utm_content=ts-graphviz/ts-graphviz&utm_campaign=Badge_Grade_Settings)\n[![GitHub Action](https://github.com/kamiazya/ts-graphviz/workflows/NodeCI/badge.svg)](https://github.com/kamiazya/ts-graphviz/actions?workflow=NodeCI)\n[![npm version](https://badge.fury.io/js/ts-graphviz.svg)](https://badge.fury.io/js/ts-graphviz)\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[![code style: prettier](https://img.shields.io/badge/code%20style-prettier-ff69b4?logo=prettier&style=flat)](https://github.com/facebook/jest)\n[![test: jest](https://img.shields.io/badge/tested%20with-jest-99424f?logo=jest&style=flat)](https://github.com/facebook/jest)\n![node version](https://img.shields.io/node/v/ts-graphviz)\n[![deno version](https://img.shields.io/badge/deno-^1.28.0-black?logo=deno)](https://github.com/denoland/deno)\n![npm](https://img.shields.io/npm/dm/ts-graphviz)\n[![All Contributors](https://img.shields.io/github/all-contributors/ts-graphviz/ts-graphviz?color=orange)](#contributors)\n\n# ts-graphviz\n\n[Graphviz](https://graphviz.gitlab.io/) library for TypeScript.\n\n[![GitHub](https://img.shields.io/badge/-GitHub-181717?logo=GitHub&style=flat)](https://github.com/ts-graphviz/ts-graphviz)\n[![npm](https://img.shields.io/badge/-npm-CB3837?logo=npm&style=flat)](https://www.npmjs.com/package/ts-graphviz)\n[![yarn](https://img.shields.io/badge/-yarn-ffffff?logo=Yarn&style=flat)](https://yarnpkg.com/package/ts-graphviz)\n[![Refarence](https://img.shields.io/badge/-Refarence-3178C6?logo=TypeScript&style=flat&logoColor=fff)](https://ts-graphviz.github.io/ts-graphviz/)\n[![Suponser](https://img.shields.io/badge/-Suponser-fff?logo=GitHub%20Sponsors&style=flat)](https://github.com/sponsors/kamiazya)\n\n> [English](https://github.com/ts-graphviz/ts-graphviz/blob/main/README.md) | [日本語](https://github.com/ts-graphviz/ts-graphviz/blob/main/README_ja.md)\n\n## Key Features ✨\n\n`ts-graphviz` package provides models and ASTs for the Graphviz DOT language fully integrated with TypeScript.\n\n- **TypeScript-friendly API**\n  - It provides models in the DOT language. TypeScript type definitions are also provided for attributes and even attribute types.\n- **Freedom from programming paradigms**\n  - Designed to be object-oriented, it provides APIs that can be adapted to both imperative and declarative APIs. You can choose the paradigm that best fits your project.\n- **Suitable for any use cases**\n  - Both a high-layer API to provide models and a low-layer API to handle ASTs are provided to address any use cases.\n\n## Installation 💽\n\n### Node.js\n\nThis package can then be installed using a package manager.\n\n```bash\n# npm\n$ npm install -S ts-graphviz\n# or yarn\n$ yarn add ts-graphviz\n# or pnpm\n$ pnpm add ts-graphviz\n```\n\n> **Note** Want to try before installing? Check out [Runkit](https://npm.runkit.com/ts-graphviz) to see how it works.\n\n### Deno 🦕\n\n[Deno v1.28 and above supports npm](https://deno.land/manual/node/npm_specifiers).\n\nYou can install and use the package by specifying the following:\n\n```ts\nimport { toDot } from 'npm:ts-graphviz';\n```\n\n## Usage 📑\n\nThis section provides an overview of the package.\n\nFor more detailed API specifications, please refer to the comments in the TypeScript type definitions and the [document](https://ts-graphviz.github.io/ts-graphviz/) automatically generated based on them.\n\n### `ts-graphviz` Module 🚩\n\nThis module provides **Model**, an interface for working with the DOT language in JavaScript/TypeScript.\n\n![ts-graphviz](./media/ts-graphviz.svg)\n\n#### Object-Oriented ❤️\n\n**Model** is designed to be object-oriented and provides classes `Digraph`, `Graph`, `Subgraph`, `Node`, and `Edge`.\n\nProvides a `toDot` function to convert **Model** to **DOT** (DOT language string).\n\n```typescript\nimport { attribute as _, Digraph, Subgraph, Node, Edge, toDot } from 'ts-graphviz';\n\nconst G = new Digraph();\nconst A = new Subgraph('A');\nconst node1 = new Node('node1', {\n  [_.color]: 'red'\n});\nconst node2 = new Node('node2', {\n  [_.color]: 'blue'\n});\nconst edge = new Edge([node1, node2], {\n  [_.label]: 'Edge Label',\n  [_.color]: 'pink'\n});\nG.addSubgraph(A);\nA.addNode(node1);\nA.addNode(node2);\nA.addEdge(edge);\nconst dot = toDot(G);\n// digraph {\n//   subgraph \"A\" {\n//     \"node1\" [\n//       color = \"red\",\n//     ];\n//     \"node2\" [\n//       color = \"blue\",\n//     ];\n//     \"node1\" -> \"node2\" [\n//       label = \"Edge Label\",\n//       color = \"pink\",\n//     ];\n//   }\n// }\n```\n\n<details>\n<summary>Advanced Usage</summary>\n\n##### Custom Class 🤖\n\nYou can also add your own implementation by inheriting from the class.\n\n```typescript\nimport { Digraph, Node, Edge, EdgeTargetTuple, attribute as _, toDot } from 'ts-graphviz';\n\nclass MyCustomDigraph extends Digraph {\n  constructor() {\n    super('G', {\n      [_.label]: 'This is Custom Digraph',\n    });\n  }\n}\nclass MyCustomNode extends Node {\n  constructor(id: string) {\n    super(`node_${id}`, {\n      [_.label]: `This is Custom Node ${id}`,\n    });\n  }\n}\n\nclass MyCustomEdge extends Edge {\n  constructor(targets: EdgeTargetTuple) {\n    super(targets, {\n      [_.label]: 'This is Custom Edge',\n    });\n  }\n}\n\nconst digraph = new MyCustomDigraph();\nconst node1 = new MyCustomNode('A');\nconst node2 = new MyCustomNode('B');\nconst edge = new MyCustomEdge([node1, node2]);\ndigraph.addNode(node1);\ndigraph.addNode(node2);\ndigraph.addEdge(edge);\nconst dot = toDot(digraph);\n// digraph \"G\" {\n//   label = \"This is Custom Digraph\";\n//   \"node_A\" [\n//     label = \"This is Custom Node A\";\n//   ];\n//   \"node_B\" [\n//     label = \"This is Custom Node B\";\n//   ];\n//   \"node_A\" -> \"node_B\" [\n//     label = \"This is Custom Edge\";\n//   ];\n// }\n```\n\n##### Models Context API ( `with` method) 🧅\n\nYou can also use the _Models Context API_ to create custom classes for objects generated inside of Graph.\n\n\nThe `with` methods of `Digraph`, `Graph`, and `Subgraph`, which are implementations of `GraphBaseModel`, are provided to predefine custom models.\n\n```typescript\nconst g = new Digraph();\ng.with({\n  Node: MyCustomNode,\n  Edge: MyCustomEdge,\n});\nconst a = g.createNode('A'); // MyCustomNode\nconst b = g.createNode('B'); // MyCustomNode\ng.createEdge([a, b]); // MyCustomEdge\nconst dot = toDot(g);\n// digraph {\n//   \"node_A\" [\n//     label = \"This is Custom Node A\";\n//   ];\n//   \"node_B\" [\n//     label = \"This is Custom Node B\";\n//   ];\n//   \"node_A\" -> \"node_B\" [\n//     label = \"This is Custom Edge\";\n//   ];\n// }\n```\n\n##### `fromDot` function ⏪\n\n> The status of this function is ! [beta](https://img.shields.io/badge/-beta-orange).\n\nThe main scenario for using this library is to use the `toDot` function, but it also supports conversions in the reverse direction.\n\nBy converting **DOT** to **Model**, a portion of the code can be written in the DOT language.\n\n```typescript\nconst G = fromDot(\n  `digraph {\n    node_A [\n      label = \"This is a Label of Node A\";\n    ];\n  }`,\n);\n\nG.edge(['node_A', 'node_B']);\n\nconst dot = toDot(G)\n// digraph {\n//   \"node_A\" [\n//     label = \"This is a Label of Node A\";\n//   ];\n//   \"node_A\" -> \"node_B\";\n// }\n```\n\n</details>\n\n#### Declarative API 😎\n\nWhen creating `Graph` or `Digraph`, you can use _Model Factory_ to provide a notation more similar to the **DOT** language.\n\n**Model** also has a declarative API, so you can consistently choose a declarative paradigm.\n\n\n```typescript\nimport { attribute as _, digraph, toDot } from 'ts-graphviz';\n\n const G = digraph('G', (g) => {\n  const a = g.node('aa');\n  const b = g.node('bb');\n  const c = g.node('cc');\n  g.edge([a, b, c], {\n    [_.color]: 'red'\n  });\n  g.subgraph('A', (A) => {\n    const Aa = A.node('Aaa', {\n      [_.color]: 'pink'\n    });\n\n    const Ab = A.node('Abb', {\n      [_.color]: 'violet'\n    });\n    const Ac = A.node('Acc');\n    A.edge([Aa.port('a'), Ab, Ac, 'E'], {\n      [_.color]: 'red'\n    });\n  });\n});\n\nconst dot = toDot(G);\n// digraph \"G\" {\n//   \"aa\";\n//   \"bb\";\n//   \"cc\";\n//   subgraph \"A\" {\n//     \"Aaa\" [\n//       color = \"pink\",\n//     ];\n//     \"Abb\" [\n//       color = \"violet\",\n//     ];\n//     \"Acc\";\n//     \"Aaa\":\"a\" -> \"Abb\" -> \"Acc\" -> \"E\" [\n//       color = \"red\",\n//     ];\n//   }\n//   \"aa\" -> \"bb\" -> \"cc\" [\n//     color = \"red\",\n//   ];\n// }\n```\n\n> **Note** Of course, we also provide an API for creating strict mode graphs.\n>\n> ```typescript\n> import { strict, toDot } from 'ts-graphviz';\n>\n> const G = strict.graph(...);\n> const dot = toDot(G);\n> // strict graph {\n> // }\n> ```\n\n\n<details>\n<summary>Advanced Usage</summary>\n\n##### Models Context API ( `withContext` function ) 💈\n\n\nThe `withContext` function returns a _Model Factory_ function.\n\nThis _Model Factory_ provides a means to replace `RootGraphModel` with a custom class, such as `Digraph` or `Graph`.\n\nThis API provides a way to integrate declarative APIs and custom classes.\n\n```typescript\nconst { digraph } = withContext({\n  Digraph: MyCustomDigraph,\n  Node: MyCustomNode,\n  Edge: MyCustomEdge,\n});\n\nconst G = digraph((g) => {\n  const a = g.node('A'); // MyCustomNode\n  const b = g.node('B'); // MyCustomNode\n  g.edge([a, b]); // MyCustomEdge\n});\nconst dot = toDot(g);\n// digraph \"G\" {\n//   label = \"This is Custom Digraph\";\n//   \"node_A\" [\n//     label = \"This is Custom Node A\";\n//   ];\n//   \"node_B\" [\n//     label = \"This is Custom Node B\";\n//   ];\n//   \"node_A\" -> \"node_B\" [\n//     label = \"This is Custom Edge\";\n//   ];\n// }\n```\n\n</details>\n\n### `ts-graphviz/adapter` Module 🔌\n\n> This module status is ![beta](https://img.shields.io/badge/-beta-orange).\n\n\nProvides an interface to run Graphviz dot commands.\n\n[Graphviz](https://graphviz.gitlab.io/) must be installed so that the dot command can be executed.\n\nExecute the dot command to output a DOT language string to a stream or file.\n\n![Adapter State Machine](./media/adapter-state-machine.svg)\n\nThis module provides the following functions.\n\n- The `toStream` function converts **DOT** to **Stream**.\n    ```ts\n    import { toStream } from 'ts-graphviz/adapter';\n\n    const dot = `\n      digraph example {\n        node1 [\n          label = \"My Node\",\n        ]\n      }\n    `;\n\n    const stream = await toStream(dot, { format: 'svg' });\n    // Node.js\n    stream.pipe(process.stdout);\n    // Deno\n    await stream.pipeTo(Deno.stdout.writable);\n    ```\n- Writes **DOT** to a file at the specified path `toFile` function\n    ```ts\n    import { toFile } from 'ts-graphviz/adapter';\n\n    const dot = `\n      digraph example {\n        node1 [\n          label = \"My Node\",\n        ]\n      }\n    `;\n\n    await toFile(dot, './result.svg', { format: 'svg' });\n    ```\n\n> **Note** Designed to work with Node.js and Deno, Stream is runtime native.\n\n### `ts-graphviz/ast` Module 🔢\n\n> This module status is ![beta](https://img.shields.io/badge/-beta-orange).\n\nAn API is provided to handle ASTs for advanced use.\n\n![State Machine](./media/state-machine.svg)\n\nThe following functions are provided as described in the state transition diagram.\n\n- The `fromModel` function converts **Model** to **AST**.\n- The `toModel` function converts **AST** to **Model**.\n- The `stringify` function converts **AST** to **DOT**.\n- The `parse` function to convert from **DOT** to **AST**.\n\n> **Note** As you can see from the above figure, the `toDot` function provided by the `ts-graphviz` package is a composite of `fromModel` and `stringify`. The `fromDot` function is a composite of `parse` and `toModel`.\n\nDetailed usage is TODO.\nPlease refer to the TypeScript type definition.\n\n\n<details>\n<summary>The parse function and AST</summary>\n\n\n```typescript\nimport { parse } from 'ts-graphviz/ast';\n\nconst ast = parse(`\n  digraph example {\n    node1 [\n      label = \"My Node\",\n    ]\n  }\n`);\n// {\n//   type: 'Dot',\n//   location: {\n//     start: { offset: 3, line: 2, column: 3 },\n//     end: { offset: 68, line: 7, column: 1 }\n//   },\n//   children: [\n//     {\n//       id: {\n//         value: 'example',\n//         quoted: false,\n//         type: 'Literal',\n//         location: {\n//           start: { offset: 11, line: 2, column: 11 },\n//           end: { offset: 18, line: 2, column: 18 }\n//         },\n//         children: []\n//       },\n//       directed: true,\n//       strict: false,\n//       type: 'Graph',\n//       location: {\n//         start: { offset: 3, line: 2, column: 3 },\n//         end: { offset: 67, line: 6, column: 4 }\n//       },\n//       children: [\n//         {\n//           id: {\n//             value: 'node1',\n//             quoted: false,\n//             type: 'Literal',\n//             location: {\n//               start: { offset: 25, line: 3, column: 5 },\n//               end: { offset: 30, line: 3, column: 10 }\n//             },\n//             children: []\n//           },\n//           type: 'Node',\n//           location: {\n//             start: { offset: 25, line: 3, column: 5 },\n//             end: { offset: 63, line: 5, column: 6 }\n//           },\n//           children: [\n//             {\n//               key: {\n//                 value: 'label',\n//                 quoted: false,\n//                 type: 'Literal',\n//                 location: {\n//                   start: { offset: 39, line: 4, column: 7 },\n//                   end: { offset: 44, line: 4, column: 12 }\n//                 },\n//                 children: []\n//               },\n//               value: {\n//                 value: 'My Node',\n//                 quoted: true,\n//                 type: 'Literal',\n//                 location: {\n//                   start: { offset: 47, line: 4, column: 15 },\n//                   end: { offset: 56, line: 4, column: 24 }\n//                 },\n//                 children: []\n//               },\n//               location: {\n//                 start: { offset: 39, line: 4, column: 7 },\n//                 end: { offset: 57, line: 4, column: 25 }\n//               },\n//               type: 'Attribute',\n//               children: []\n//             }\n//           ]\n//         }\n//       ]\n//     }\n//   ]\n// }\n```\n\n</details>\n\n## Who's using `ts-graphviz` 📜\n\n- [Apollo GraphQL](https://github.com/apollographql)\n- [AWS](https://github.com/aws)\n- [IBM (StrongLoop)](https://strongloop.com)\n- [The University of Tokyo](https://github.com/csg-tokyo)\n- [Transmute](https://github.com/transmute-industries)\n\n> **Note** Let us know that you're using `ts-graphviz` on [GitHub Discussions](https://github.com/ts-graphviz/ts-graphviz/discussions/736) 🙏\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<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"http://blog.kamiazya.tech/\"><img src=\"https://avatars0.githubusercontent.com/u/35218186?v=4?s=100\" width=\"100px;\" alt=\"Yuki Yamazaki\"/><br /><sub><b>Yuki Yamazaki</b></sub></a><br /><a href=\"https://github.com/ts-graphviz/ts-graphviz/commits?author=kamiazya\" title=\"Code\">💻</a> <a href=\"https://github.com/ts-graphviz/ts-graphviz/commits?author=kamiazya\" title=\"Tests\">⚠️</a> <a href=\"https://github.com/ts-graphviz/ts-graphviz/commits?author=kamiazya\" title=\"Documentation\">📖</a> <a href=\"#ideas-kamiazya\" title=\"Ideas, Planning, & Feedback\">🤔</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://laysent.com\"><img src=\"https://avatars2.githubusercontent.com/u/1191606?v=4?s=100\" width=\"100px;\" alt=\"LaySent\"/><br /><sub><b>LaySent</b></sub></a><br /><a href=\"https://github.com/ts-graphviz/ts-graphviz/issues?q=author%3Alaysent\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/ts-graphviz/ts-graphviz/commits?author=laysent\" title=\"Tests\">⚠️</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/elasticdotventures\"><img src=\"https://avatars0.githubusercontent.com/u/35611074?v=4?s=100\" width=\"100px;\" alt=\"elasticdotventures\"/><br /><sub><b>elasticdotventures</b></sub></a><br /><a href=\"https://github.com/ts-graphviz/ts-graphviz/commits?author=elasticdotventures\" title=\"Documentation\">📖</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/ChristianMurphy\"><img src=\"https://avatars.githubusercontent.com/u/3107513?v=4?s=100\" width=\"100px;\" alt=\"Christian Murphy\"/><br /><sub><b>Christian Murphy</b></sub></a><br /><a href=\"https://github.com/ts-graphviz/ts-graphviz/commits?author=ChristianMurphy\" title=\"Code\">💻</a> <a href=\"#ideas-ChristianMurphy\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/ts-graphviz/ts-graphviz/commits?author=ChristianMurphy\" title=\"Documentation\">📖</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/ArtemAdamenko\"><img src=\"https://avatars.githubusercontent.com/u/2178516?v=4?s=100\" width=\"100px;\" alt=\"Artem\"/><br /><sub><b>Artem</b></sub></a><br /><a href=\"https://github.com/ts-graphviz/ts-graphviz/issues?q=author%3AArtemAdamenko\" title=\"Bug reports\">🐛</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/fredericohpandolfo\"><img src=\"https://avatars.githubusercontent.com/u/24229136?v=4?s=100\" width=\"100px;\" alt=\"fredericohpandolfo\"/><br /><sub><b>fredericohpandolfo</b></sub></a><br /><a href=\"https://github.com/ts-graphviz/ts-graphviz/issues?q=author%3Afredericohpandolfo\" title=\"Bug reports\">🐛</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/diegoquinteiro\"><img src=\"https://avatars.githubusercontent.com/u/1878108?v=4?s=100\" width=\"100px;\" alt=\"diegoquinteiro\"/><br /><sub><b>diegoquinteiro</b></sub></a><br /><a href=\"https://github.com/ts-graphviz/ts-graphviz/issues?q=author%3Adiegoquinteiro\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/robross0606\"><img src=\"https://avatars.githubusercontent.com/u/2965467?v=4?s=100\" width=\"100px;\" alt=\"robross0606\"/><br /><sub><b>robross0606</b></sub></a><br /><a href=\"#ideas-robross0606\" title=\"Ideas, Planning, & Feedback\">🤔</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://blake-regalia.net\"><img src=\"https://avatars.githubusercontent.com/u/1456400?v=4?s=100\" width=\"100px;\" alt=\"Blake Regalia\"/><br /><sub><b>Blake Regalia</b></sub></a><br /><a href=\"https://github.com/ts-graphviz/ts-graphviz/issues?q=author%3Ablake-regalia\" title=\"Bug reports\">🐛</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/bigbug\"><img src=\"https://avatars.githubusercontent.com/u/27259?v=4?s=100\" width=\"100px;\" alt=\"bigbug\"/><br /><sub><b>bigbug</b></sub></a><br /><a href=\"#question-bigbug\" title=\"Answering Questions\">💬</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/murawakimitsuhiro\"><img src=\"https://avatars.githubusercontent.com/u/13833242?v=4?s=100\" width=\"100px;\" alt=\"mrwk\"/><br /><sub><b>mrwk</b></sub></a><br /><a href=\"#question-murawakimitsuhiro\" title=\"Answering Questions\">💬</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/svdvonde\"><img src=\"https://avatars.githubusercontent.com/u/2751783?v=4?s=100\" width=\"100px;\" alt=\"svdvonde\"/><br /><sub><b>svdvonde</b></sub></a><br /><a href=\"#question-svdvonde\" title=\"Answering Questions\">💬</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/seethroughdev\"><img src=\"https://avatars.githubusercontent.com/u/203779?v=4?s=100\" width=\"100px;\" alt=\"Adam\"/><br /><sub><b>Adam</b></sub></a><br /><a href=\"#question-seethroughdev\" title=\"Answering Questions\">💬</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors)\nspecification. 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/ts-graphviz).\n\n### Questions 💭\n\nFeel free to ask questions on [GitHub Discussions](https://github.com/ts-graphviz/ts-graphviz/discussions).\n\n### Report bugs / request additional features 💡\n\nPlease register at [GitHub Issues](https://github.com/ts-graphviz/ts-graphviz/issues/new/choose).\n\n### Development / Bug Fixes 🧑‍💻\n\nSee [CONTRIBUTING.md](https://github.com/ts-graphviz/ts-graphviz/blob/main/CONTRIBUTING.md).\n\n### Financial Support 💸\n\nPlease support core member [kamiazya](https://github.com/sponsors/kamiazya).\n\n> **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](https://github.com/ts-graphviz/ts-graphviz/blob/main/LICENSE).\n","engines":{"node":">=14.16"},"exports":{".":{"import":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"require":{"types":"./lib/index.d.ts","default":"./lib/index.cjs"}},"./ast":{"import":{"types":"./lib/ast/index.d.ts","default":"./lib/ast/index.js"},"require":{"types":"./lib/ast/index.d.ts","default":"./lib/ast/index.cjs"}},"./adapter":{"deno":{"types":"./lib/adapter/deno/mod.d.ts","default":"./lib/adapter/deno/mod.js"},"node":{"types":"./lib/adapter/node/index.d.ts","import":"./lib/adapter/node/index.js","require":"./lib/adapter/node/index.cjs"},"browser":{"types":"./lib/adapter/browser/index.d.ts","import":"./lib/adapter/browser/index.js","require":"./lib/adapter/browser/index.cjs"},"default":{"types":"./lib/adapter/node/index.d.ts","import":"./lib/adapter/node/index.js","require":"./lib/adapter/node/index.cjs"}},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/kamiazya","type":"github"},"gitHead":"2cdf4fa1a989d8175345e6577e88186486c581c5","scripts":{"doc":"typedoc","lint":"eslint --ext ts src","test":"NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest","build":"yarn build:node && yarn build:deno","format":"eslint --ext ts src --fix && prettier --write './**/*.{ts,js,json,yaml}' '!lib'","predoc":"yarn build:peggy","pretest":"yarn build:peggy","prebuild":"yarn build:peggy","postbuild":"prettier --write ./lib/**/*.{js,cjs,d.ts}","build:deno":"mkdir -p lib/adapter/deno && cp -r src/adapter/deno/* lib/adapter/deno && sed -i \"s/index.ts/index.js/g\" lib/adapter/deno/mod.js && sed -i \"s/index.ts/index.d.ts/g\" lib/adapter/deno/mod.d.ts","build:node":"tsc -p tsconfig.build.json && rollup -c","build:peggy":"peggy --plugin ts-pegjs --extra-options-file src/ast/dot-shim/parser/peggy.options.json -o src/ast/dot-shim/parser/_parse.ts src/ast/dot-shim/parser/dot.peggy"},"_npmUser":{"name":"kamiazya","email":"yuki@kamiazya.tech"},"repository":{"url":"git+https://github.com/ts-graphviz/ts-graphviz.git","type":"git"},"_npmVersion":"8.19.3","description":"Graphviz library for TypeScript.","directories":{},"_nodeVersion":"16.19.0","typesVersions":{"*":{"ast":["lib/ast"],"adapter":["lib/adapter/node"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^29.4.1","svgo":"^3.0.2","peggy":"^2.0.1","eslint":"^8.32.0","rollup":"^3.11.0","ts-jest":"^29.0.5","typedoc":"^0.23.15","prettier":"^2.8.3","ts-pegjs":"^3.0.0","typescript":"^4.7.4","@types/jest":"^29.4.0","rollup-plugin-dts":"5.1.1","eslint-plugin-jest":"^27.2.1","eslint-plugin-import":"^2.27.5","rollup-plugin-delete":"^2.0.0","prettier-plugin-pegjs":"^0.5.0","@rollup/plugin-replace":"^5.0.2","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","jest-specific-snapshot":"^7.0.0","@typescript-eslint/parser":"^5.49.0","jest-snapshot-serializer-raw":"^1.2.0","@types/jest-specific-snapshot":"^0.5.6","@typescript-eslint/eslint-plugin":"^5.49.0"},"runkitExampleFilename":"example/runkit.cjs","_npmOperationalInternal":{"tmp":"tmp/ts-graphviz_1.5.4-dev.2cdf4fa1a_1675601698754_0.040671730306917286","host":"s3://npm-registry-packages"},"publish_time":1675601698976,"_cnpm_publish_time":1675601698976,"dist-tags":{"develop":"0.0.0-pr956-20240225163634","latest":"3.0.13","next":"3.0.14-next-4447d09a6198e25451e4381368cfc00f9b9c2e49"}}