mihneadb / node-directory-tree

Convert a directory tree to a JS object.
MIT License
523 stars 106 forks source link

Add parsing such as dree #101

Open euberdeveloper opened 2 years ago

euberdeveloper commented 2 years ago

Hi,

first of all I want to thank you, because for parts of a similar library I have done I took inspiration by your json result

In my implementation, dree I have also added a parse function (in addition to other functionalities`, which prints the directory tree as a human-readable tree

Do you think you could implement it also in this library? I think it would be useful, especially when generating directory trees in markdown files

mihneadb commented 2 years ago

Hi, I'm not sure what you mean with parse. What would it do?

euberdeveloper commented 2 years ago

It creates a string like this:

image

Of course just by the name was it difficult to guess, it is described in the documentation

mihneadb commented 2 years ago

Oh, so you mean serialize a directory as a string.