Sha256: af8dbfd6a7006b026ac5e2807b9a9240a948a11aa70e3407c1d9ba66ba51f50a
Contents?: true
Size: 479 Bytes
Versions: 100
Compression:
Stored size: 479 Bytes
Contents
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 });
Version data entries
100 entries across 100 versions & 14 rubygems