const fs = require('fs')
// With Sync function
let files = fs.readdirSync('./')
console.log(files)
Reads the current directory asynchronouslyconst fs = require('fs')
// With Async function
fs.readdir('./', function(err, files){
if (err) {
console.log('Error', err)
} else {
console.log(files)
}
})