HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/somerenslust.komma.pro/node_modules/readdirp/examples/stream-api.js
var readdirp =  require('..')
  , path = require('path');

readdirp({ root: path.join(__dirname), fileFilter: '*.js' })
  .on('warn', function (err) { 
    console.error('something went wrong when processing an entry', err); 
  })
  .on('error', function (err) { 
    console.error('something went fatally wrong and the stream was aborted', err); 
  })
  .on('data', function (entry) { 
    console.log('%s is ready for processing', entry.path);
    // process entry here
  });