README
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
<script type="module">
import shgetfilelist from 'https://cdn.skypack.dev/shgetfilelist';
</script>
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);}); });