node check all files of folder 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);
}});