Switchless TEST


How to use __dirname


  • keywords: #pattern
  • author: #alex

to know when to use __dirname vs process.cwd() refer to the article below

  • https://www.digitalocean.com/community/tutorials/nodejs-how-to-use__dirname
  • https://stackoverflow.com/a/18283508