Tree Data + Recursion in JavaScript

Lessons learned building an ASCII tree folder generator

Alex Zito-Wolf
Aug 5 · 3 min read

I recently wrote a script that generates a text-based ASCII folder structure based on a bullet list. This was something that I had looked for before while I was writing documentation, but I couldn’t find it so I thought that I’d write it myself. Because a picture is worth a thousand words, here is what the final product looks like: