This package reads all the child files and return an array of file paths from a directory
Install recursivefilereader with npm install recursivefilereader
npm install recursivefilereader
const filereader = require("recursivefilereader");
filereader("./test1")
.then((res) => console.log(res))
.catch((err) => console.log(err));