wanderlust

1.0.0 • Public • Published

Wanderlust 🚶

NPM Version NPM Downloads License: MIT
Wanderlust is a tiny nodeJS script that takes a directory and function as input and walks through every file in the folder and its sub-folders calling the given function once for every file it finds!
<coded/> with ❤︎ and ☕ by Marius Niveri


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

/wanderlust/

    Package Sidebar

    Install

    npm i wanderlust

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • m4r1vs