How do you get a list of the names of all files present in a directory in Node.js?
Asked 07 September, 2021
Viewed 2.7K times
  • 58
Votes

I'm trying to get a list of the names of all the files present in a directory using Node.js. I want output that is an array of filenames. How can I do this?

26 Answer