treeify
treeify copied to clipboard
Add unicode or embolden keys
I would like to add unicode to the tree and also use something like chalk.bold() on the tree. For example, I have this:
└─ npm-link-up (root)
└─ node_modules
├─ @oresoftware/shell
├─ json-stdio
├─ prepend-transform
└─ residence
and it would be really awesome to have this:
└─ npm-link-up (root)
└─ node_modules
├─ @oresoftware/shell ⏰
├─ json-stdio ⏰
├─ prepend-transform ⏰
└─ residence ⏰
and have bold branches using chalk.bold(), etc, is it possible somehow?
Right now if I do this:
node[name] = ' ⏰';
instead of
node[name] = null;
then that works. But I will still looking to get bold characters if possible