How to get the name of all the files in a directory using Node.js?
Originally posted here!
To get the name of all the files from a directory in nodejs, we can use the readdirSync() or readdir() functions from the native filesystem (fs) module in Node.js.
/* Get name of files in a directory */
const fileNames = read...
melvingeorge-me.hashnode.dev4 min read