{"name":"@ts-graphviz/ast","version":"0.0.0-next-20240428052616","description":"Graphviz AST(Abstract Syntax Tree) Utilities","keywords":[],"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/ast"},"funding":[{"type":"github","url":"https://github.com/sponsors/ts-graphviz"},{"type":"opencollective","url":"https://opencollective.com/ts-graphviz"}],"license":"MIT","author":{"name":"kamiazya","email":"yuki@kamiazya.tech"},"type":"module","exports":{".":{"types":"./lib/ast.d.ts","require":"./lib/ast.cjs","default":"./lib/ast.js"},"./package.json":"./package.json"},"main":"lib/ast.cjs","module":"lib/ast.js","types":"lib/ast.d.ts","dependencies":{"@ts-graphviz/common":"^0.0.0-next-20240428052616"},"devDependencies":{"peggy":"^4.0.2","ts-pegjs":"^4.2.1","typescript":"^5.4.5","vite":"^5.2.8","vite-plugin-dts":"^3.7.3"},"engines":{"node":">=18"},"publishConfig":{"access":"public","provenance":true},"scripts":{"build":"vite build","codegen":"peggy --plugin ts-pegjs --extra-options-file src/dot-shim/parser/peggy.options.json -o src/dot-shim/parser/_parse.ts src/dot-shim/parser/dot.peggy"},"readme":"# @ts-graphviz/ast\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 module for processing the DOT language at the **A**bstract **S**yntax **T**ree (AST) level for the ts-graphviz library.\n\n## Features\n\n- Parsing and generating DOT language ASTs\n- Functions for manipulating and transforming ASTs\n- Support for custom AST nodes and attributes\n\n## Usage\n\nImport the necessary functions and classes from the `@ts-graphviz/ast` package:\n\n```ts\nimport { parse, stringify } from '@ts-graphviz/ast';\n```\n\nUse the imported items in your project to work with DOT language ASTs:\n\n```ts\nconst dotString = 'digraph G { A -> B; }';\nconst ast = parse(dotString);\n\nconst outputDotString = stringify(ast);\nconsole.log('Output DOT string:', outputDotString);\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","readmeFilename":"README.md","_id":"@ts-graphviz/ast@0.0.0-next-20240428052616","_integrity":"sha512-f8EibhktXwwkqDNYOWEbYl5adF0nP/YjNhJzR3AuU/AynwKzpZVR9TTYZCe2gLP5h1BeeHe851pE5hbEzNDjdA==","_resolved":"/tmp/b6494ddf927135b2e61e28e672d09de9/ts-graphviz-ast-0.0.0-next-20240428052616.tgz","_from":"file:ts-graphviz-ast-0.0.0-next-20240428052616.tgz","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-f8EibhktXwwkqDNYOWEbYl5adF0nP/YjNhJzR3AuU/AynwKzpZVR9TTYZCe2gLP5h1BeeHe851pE5hbEzNDjdA==","shasum":"f6bfaabc6d0fd0f411b8be8593cf8e057599d1b4","tarball":"http://registry-npm.ywwl.com/@ts-graphviz/ast/download/@ts-graphviz/ast-0.0.0-next-20240428052616.tgz","fileCount":7,"unpackedSize":283086,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ts-graphviz%2fast@0.0.0-next-20240428052616","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDhAs6xY7VYoWD6+gy26FdOvwCsqeCYfpup1OoZXFMsRAiBj59TSfp1nqOrzZVBFi9mFRfkUfts17Kn3KEfHdjakhA=="}],"size":45169,"noattachment":false,"key":"/@ts-graphviz/ast/-/@ts-graphviz/ast-0.0.0-next-20240428052616.tgz"},"_npmUser":{"name":"kamiazya","email":"yuki@kamiazya.tech"},"directories":{},"maintainers":[{"name":"kamiazya","email":"yuki@kamiazya.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ast_0.0.0-next-20240428052616_1714281989017_0.4797495656638988"},"_hasShrinkwrap":false,"publish_time":1714281989222,"_cnpm_publish_time":1714281989222,"dist-tags":{"develop":"0.0.0-pr956-20240225163634","latest":"3.0.11","next":"3.0.11-next-25c9dd3bd549e8cd4fd0d200c83e8a436ea579e5"}}