how to read every file in a folder with node fs 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);
}});