directory-stream

A stream based directory scanner

Directory Stream

This module provides a streaming interface for scanning directories. It is capable of scanning a single level of a directory as well as recursively scanning directories. It also ships with async and sync flavors.

Scanning a single level directory

directoryStream = require("directory-stream")
 
directoryStream("./target/directory").pipe(process.stdout)

Scanning a nested directories recursively

directoryStream = require("directory-stream")
 
directoryStream.recursive("./target/directory").pipe(process.stdout)