Read files of directory
You have to follow these steps
const readDirRecursive = require('readFileRecursively')
readDirRecursive('./directoryName').then(data => { console.log(data) })
This is a package helps to read all file recursively. And provides the array of files
Homepage Repository npm JavaScript Download
npm install readfilerecurisvely@1.0.0
You have to follow these steps
const readDirRecursive = require('readFileRecursively')
readDirRecursive('./directoryName').then(data => { console.log(data) })