shgetfilelist

Get a list of all files in a folder

Usage no npm install needed!

<script type="module">
  import shgetfilelist from 'https://cdn.skypack.dev/shgetfilelist';
</script>

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);}); });