@ts-graphviz/ast
Graphviz AST(Abstract Syntax Tree) Utilities
Last updated 3 years ago by kamiazya .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @ts-graphviz/ast 
SYNC missed versions from official npm registry.

@ts-graphviz/ast

This package contains the module for processing the DOT language at the Abstract Syntax Tree (AST) level for the ts-graphviz library.

It is part of the ts-graphviz library, which is split into modular packages to improve maintainability, flexibility, and ease of use.

Features

  • Parsing and generating DOT language ASTs
  • Functions for manipulating and transforming ASTs
  • Support for custom AST nodes and attributes

Usage

Import the necessary functions and classes from the @ts-graphviz/ast package:

import { parse, stringify } from '@ts-graphviz/ast';

Use the imported items in your project to work with DOT language ASTs:

const dotString = 'digraph G { A -> B; }';
const ast = parse(dotString);

const outputDotString = stringify(ast);
console.log('Output DOT string:', outputDotString);

For more examples and usage details, please refer to the ts-graphviz documentation.

Contributing

Contributions to the ts-graphviz project are welcome.

Please refer to the main ts-graphviz repository for guidelines on how to contribute.

License

This package is released under the MIT License.

Current Tags

102 Versions

Maintainers (1)
Downloads
Total 9
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 3
Last Month 8
Dependencies (1)
Dev Dependencies (5)

© 2010 - cnpmjs.org x YWFE | Home | YWFE