GetFileList
These commands will list all files in the directory of your script (__dirname) :
const gf=require("shgetfilelist");
gf(__dirname).then((s)=>{ s.forEach((r)=>{console.log(r);}); });
Get a list of all files in a folder
These commands will list all files in the directory of your script (__dirname) :
const gf=require("shgetfilelist");
gf(__dirname).then((s)=>{ s.forEach((r)=>{console.log(r);}); });