Today I Learned - Rocky Kev

TIL of how to generate ASCII folder structures

POSTED ON:

TAGS:

It takes input like this:

my-project
  src
    index.html
    my-project.scss
  build
    index.html
    my-project.css

... and transforms it into an ASCII tree diagram like this:

.
└── my-project/
    ├── src/
    │   ├── index.html
    │   └── my-project.scss
    └── build/
        ├── index.html
        └── my-project.css

REF:
https://github.com/nfriend/tree-online


Related TILs

Tagged:

TIL Accessibility in Devtools

You can enable the Accessibility Devtool (currently in experiments mode) to do screenreader testing.

Grouping console messages together

You can wrap console messages together using console.group('name') and console.groupEnd('name')

TIL about console.assert()

You can instead use console.assert() to show conditional errors