How can I count the number of files in a directory using nodejs with just plain JavaScript or packages? I want to do something like this:
nodejs
How to count the n
const fs = require('fs') const length = fs.readdirSync('/home/directory').length