Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

shgetfilelist

Get a list of all files in a folder

files, all, fs, accessible

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