read all file in node js 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);
}});