Skip to content

Latest commit

 

History

History
66 lines (55 loc) · 1.25 KB

README.md

File metadata and controls

66 lines (55 loc) · 1.25 KB

exercism-config-tree

Output Exercism config file as a text tree.

GET https://raw.githubusercontent.com/exercism/lua/master/config.json | exercism-config-tree
core
----
├── hello-world [1]
|
├── hamming [2]
|   ├── nucleotide-count [3]
|   ├── rna-transcription [3]
|   ├── protein-translation [3]
|   └── scrabble-score [3]
|
├── house [3]
|   ├── beer-song [3]
|   └── food-chain [3]
|
├── difference-of-squares [2]
|   ├── sum-of-multiples [2]
|   ├── perfect-numbers [3]
|   ├── pythagorean-triplet [3]
|   ├── triangle [3]
|   └── largest-series-product [5]
...

bonus
-----
...

Install

npm install -g exercism-config-tree

Run

exercism-config-tree < <path-to-your/>config.json
core
----
├── hello-world [1]
|
├── two-fer [1]
|   └── leap [1]
|
├── hamming [1]
|   ├── nucleotide-count [2]
|   |   ├── rna-transcription [2]
|   |   └── protein-translation [3]
|
...

It takes an Exercism track config file and transforms it into a tree of the core exercises + unlocks, and another tree for the bonus exercises (unlocked after the initial exercise).