ascii_art_tree 1.0.6 copy "ascii_art_tree: ^1.0.6" to clipboard
ascii_art_tree: ^1.0.6 copied to clipboard

A minimalistic ASCII Art Tree generator with multiple styles.

example/ascii_art_tree_example.dart

import 'package:ascii_art_tree/ascii_art_tree.dart';

void main() async {
  var paths = [
    '/workspace/project-x/src/base.dart',
    '/workspace/project-x/src/entities.dart',
    '/workspace/project-x/src/system.dart',
    '/workspace/project-x/assets/file2.txt',
    '/workspace/project-x/assets/images/imgX.png',
    '/workspace/project-x/assets/images/imgY.png',
  ];

  var asciiArtTree = ASCIIArtTree.fromStringPaths(
    paths,
    style: ASCIIArtTreeStyle.elegant,
  );

  var tree = asciiArtTree.generate();
  print(tree);
}

/////////////
// OUTPUT: //
/////////////
// /
// └─┬─ workspace
//   └─┬─ project-x
//     ├─┬─ src
//     │ ├──> base.dart
//     │ ├──> entities.dart
//     │ └──> system.dart
//     └─┬─ assets
//       ├──> file2.txt
//       └─┬─ images
//         ├──> imgX.png
//         └──> imgY.png
1
likes
140
pub points
51%
popularity

Publisher

unverified uploader

A minimalistic ASCII Art Tree generator with multiple styles.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

collection, graph_explorer, path

More

Packages that depend on ascii_art_tree