{"name":"@ts-graphviz/core","version":"2.0.2","description":"Graphviz Models for Object-Oriented Programming","keywords":["graphviz","dot"],"homepage":"https://github.com/ts-graphviz/ts-graphviz#readme","bugs":{"url":"https://github.com/ts-graphviz/ts-graphviz/issues"},"repository":{"type":"git","url":"git+https://github.com/ts-graphviz/ts-graphviz.git","directory":"packages/core"},"funding":[{"type":"github","url":"https://github.com/sponsors/ts-graphviz"},{"type":"opencollective","url":"https://opencollective.com/ts-graphviz"}],"license":"MIT","author":{"name":"Yuki Yamazaki","email":"yuki@kamiazya.tech"},"type":"module","exports":{".":{"types":"./lib/core.d.ts","require":"./lib/core.cjs","default":"./lib/core.js"},"./register-default":{"require":"./lib/register-default.cjs","default":"./lib/register-default.js"},"./package.json":"./package.json"},"main":"lib/core.cjs","module":"lib/core.js","types":"lib/core.d.ts","dependencies":{"@ts-graphviz/ast":"^2.0.2","@ts-graphviz/common":"^2.1.1"},"devDependencies":{"typescript":"^5.3.3","vite":"^5.2.8","vite-plugin-dts":"^3.7.3"},"engines":{"node":">=18"},"publishConfig":{"access":"public","provenance":true},"scripts":{"build":"vite build"},"_id":"@ts-graphviz/core@2.0.2","_integrity":"sha512-dHr9IoliSoAQuOKPAgvixp2CbEh1bvRD59D+ME5r6HOUU8KyxJCgpuk4YGtinDDKNFfwuCjzjLBJgQBGOjZWIA==","_resolved":"/tmp/2cc4809ad63763a515b798a0e23daa18/ts-graphviz-core-2.0.2.tgz","_from":"file:ts-graphviz-core-2.0.2.tgz","_nodeVersion":"20.12.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-dHr9IoliSoAQuOKPAgvixp2CbEh1bvRD59D+ME5r6HOUU8KyxJCgpuk4YGtinDDKNFfwuCjzjLBJgQBGOjZWIA==","shasum":"7142e583f0f608ace0997bd67228c9d8484d8281","tarball":"http://registry-npm.ywwl.com/@ts-graphviz/core/download/@ts-graphviz/core-2.0.2.tgz","fileCount":43,"unpackedSize":82387,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ts-graphviz%2fcore@2.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa7JXouZBQ15H3NqK3yE21ClCWNxJHRLICP4zuTv1FvAIgHlqC0BQZvYRo69W5IXMjS6T+bMsNyc/rm+w+ZO3f4UQ="}],"size":8600,"noattachment":false,"key":"/@ts-graphviz/core/-/@ts-graphviz/core-2.0.2.tgz"},"_npmUser":{"name":"kamiazya","email":"yuki@kamiazya.tech"},"directories":{},"maintainers":[{"name":"kamiazya","email":"yuki@kamiazya.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/core_2.0.2_1712199859063_0.3744998767820227"},"_hasShrinkwrap":false,"readme":"# @ts-graphviz/core\n\n> It is part of the ts-graphviz library, which is split into modular packages to improve maintainability, flexibility, and ease of use.\n\nThis package contains the core implementation of models and functions provided to users for the ts-graphviz library.\n\n## Features\n\n- Graph, Node, and Edge model implementations\n- High-level APIs for creating and manipulating DOT language elements\n- Extensible design for custom implementations\n\n## Usage\n\nImport the necessary classes and functions from the @ts-graphviz/core package:\n\n```ts\nimport { Graph, Node, Edge } from '@ts-graphviz/core';\n```\n\nUse the imported items in your project to create and manipulate DOT language elements:\n\n```ts\nconst graph = new Graph('G');\nconst nodeA = new Node('A', { label: 'Node A' });\nconst nodeB = new Node('B', { label: 'Node B' });\nconst edge = new Edge([nodeA, nodeB], { label: 'A -> B' });\n\ngraph.addNode(nodeA);\ngraph.addNode(nodeB);\ngraph.addEdge(edge);\n\nconsole.log(graph.toDot());\n```\n\nFor more examples and usage details, please refer to the ts-graphviz documentation.\n\n\n## Contributing\n\nContributions to the ts-graphviz project are welcome.\n\nPlease refer to the main ts-graphviz repository for guidelines on how to contribute.\n\n## License\n\nThis package is released under the MIT License.\n","publish_time":1712199859202,"_cnpm_publish_time":1712199859202,"dist-tags":{"develop":"0.0.0-pr956-20240225163634","latest":"3.0.12","next":"3.0.12-next-25c9dd3bd549e8cd4fd0d200c83e8a436ea579e5"}}