const fs = require("fs");
fs.readdir(__dirname, (err, items) => {
if(err) console.error(err); return;
console.log(items);
});
Y29uc3QgZnMgPSByZXF1aXJlKCJmcyIpOwpmcy5yZWFkZGlyKF9fZGlybmFtZSwgKGVyciwgaXRlbXMpID0+IHsKICAgIGlmKGVycikgY29uc29sZS5lcnJvcihlcnIpOyByZXR1cm47CiAgICBjb25zb2xlLmxvZyhpdGVtcyk7Cn0pOw==