Geek Culture
Published in

Geek Culture

Tree Data + Recursion in JavaScript

Lessons learned building an ASCII tree folder generator

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:

link: https://xqgvz.csb.app/

A new tech publication by Start it up (https://medium.com/swlh).

Recommended from Medium

Create your own RxJS Observable for Dark Mode using Media Queries

Angular 8 Folder Structure

Creating a Serverless Spotify Search App Using React, AWS Lambda, and API Gateway.

Factory Pattern

Tracking Mouse Events With @HostListener

Deploy NodeJS Project on Heroku

Angular Material with .SASS or .LESS

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alex Zito-Wolf

Alex Zito-Wolf

Product Manager + Software Developer. Interested in Travel, Culture, and the Internet.

More from Medium

5 Use Cases for Slice() in JavaScript

Stacks: The Deeper Data Structures in JavaScript

React — Passing Asynchronous Data To A Child Component

6 Use Cases of the Spread (…) Operator with JavaScript Arrays