0.0.0 • Published 1 year ago

fs-toolz v0.0.0

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
1 year ago

fs-tools

Simple nodejs fs tools (which I use and need)

getFilesFrom(folderPath, filter)

return Array with relative string paths.

['./test/about/index.html', './test/script.js', './images/cats.jpg']

Return all files

const files = getFilesFrom("./folder")
// Outputs all files

Return specific file extensions

const htmlFiles = getFilesFrom("./folder", [".html"])
// Outputs an array with just html files
0.0.0

1 year ago