index.js
function addFiles(pattern, cb){
    glob(pattern, function(err, files){
      if(err) throw err;

      async.each(files, readFile, function(err){
        if(err) throw err;
        if(cb) cb();
      });
    });
  }
function addFiles(pattern, cb){
    glob(pattern, function(err, files){
      if(err) throw err;

      async.each(files, readFile, function(err){
        if(err) throw err;
        if(cb) cb();
      });
    });
  }
function addFiles ( pattern , cb ) { glob ( pattern , function ( err , files ) { if ( err ) throw err ; async . each ( files , readFile , function ( err ) { if ( err ) throw err ; if ( cb ) cb ( ) ; } ) ; } ) ; }
Add files to register
Add files to register