1.1.0 • Published 7 years ago

fs-walker-rx v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

fs-walker-rx

This module allows recursive traversal of the file system starting from a path. Since it uses Observables, any kind of filtering or operators can be applied before subscribing.

Installation

npm install fs-walker-rx

Example

var walk = require('fs-walker-rx').walk

var path = process.env.HOME + '/Desktop'

walk(path)
  .filter(fsObject => fsObject.name.endsWith('.js'))
  .subscribe(
    fsObject => console.log('found a js file ' + fsObject.name),
    err => console.error('error', err),
    () => console.log('done')
  )
1.1.0

7 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago