read files in folder in nodejs code example
Example: how to read all files in a folder in node js
fs.readdir('./', (err, files) => {
files.forEach(file => {
// console.log(file);
}});
fs.readdir('./', (err, files) => {
files.forEach(file => {
// console.log(file);
}});