express load all files from directory code example
Example: node get all files in folder
fs.readdir('./', (err, files) => {
files.forEach(file => {
// console.log(file);
})});
fs.readdir('./', (err, files) => {
files.forEach(file => {
// console.log(file);
})});