Skip to content
Streaming recursive directory reading
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
example
test
.gitignore
.travis.yml
Makefile
index.js
package.json
readme.md

readme.md

Unravel - Streaming recursive directory reading.

Install: npm install unravel


unravel.dir(directory):

Pass the folder to recursively read. Events file, end and error will be emitted.

var unravel = require('unravel')

unravel.dir(__dirname)

unravel.on('file', function(file){
  console.log(file)
})

unravel.on('end', function(){
  console.log('end')
})

unravel.on('error', function(err){
  console.log(err)
})

Examples:

View the examples


Tests

npm test

Build Status

Something went wrong with that request. Please try again.