wanderlust
v1.0.0
Published
Wanderlust is a small nodejs script that walks through a directory and all its sub-folders calling a function for every file it finds!
Downloads
3
Readme
Getting started 🚀
# install via npm:
npm i wanderlust
# or use yarn:
yarn add wanderlust
And using it is as easy as this:
const { walk } = require('wanderlust')
walk('files', (file) => {
console.log('Found file: ', file)
})
Or if you want to do it synchronously:
const { walkSync } = require('wanderlust')
walkSync('files', (file) => {
console.log('Found file: ', file)
})