Here is a rudimentary
sh command written in JS. Let me know your thoughts.
Additional Commentary: I still have to figure out how to write tests for this. Full disclosure I’ve gotten lazy in terms of approaching this methodically. Just many hacking sessions. I got to get back on the horse of trying to create better quality code.