loop-dir

loop all the files in a directory and return an array

Usage no npm install needed!

<script type="module">
  import loopDir from 'https://cdn.skypack.dev/loop-dir';
</script>

README

Loop-dir

Recrusively loop into a directory, and return all the file path in an array.

Install

npm install loop-dir

Usage

loop(filename or folder)

return [array]

return all the files in a folder, if it is a file then return the path of the file.

License

MIT @chilijung