Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dirflat

dirflat is a very basic function to recursively fetch all files in a directory, including sub-directories.

File structure:

.
+-- foo.txt
+-- bar.js
+-- index.js
+-- _test
|   +-- foo.js
|   +-- bar.txt

index.js

const dirFlat = require("dirflat");

dirFlat("./").then(console.log);
// ouputs ["./foo.txt", "./bar.js", "./index.js", "./test/foo.js", "./test/bar.txt"]

About

Get all files from a directory including files within subdirectories.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages