8
jeeper
6y

Thanks Windaids, this was the most fun line of code to figure out that I needed in a while: var dir = process.cwd().replace(/\\/g, '/'); + "/my_dir";

Comments
  • 0
  • 3
    this semicolon..
    ; + '/my_dir';
  • 1
    @JoshBent did not work in this program’s context 🤷‍♂️ I probably could have found a module to work around it but I chose a one-liner lol.
  • 1
    @jeeper lol, just noticed that my pin was also a direct answer to the problem, but it was really just a comment pin, to see what this evolves into :)
  • 1
    @gitreflog no idea how that snuck in there. Joys of writing code on a phone keyboard I suppose
Add Comment