import all files in directory node 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);
})});