Any ideas on an async directory search using fs.readdir? I realise that we could introduce recursion and call the read directory function with the next directory to read, bu
I recommend using node-glob to accomplish that task.
var glob = require( 'glob' ); glob( 'dirname/**/*.js', function( err, files ) { console.log( files ); });