read all in a folder node js one by one 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);
}});