wallet-core/node_modules/readdirp/examples/callback-api.js
2017-05-03 15:35:00 +02:00

11 lines
250 B
JavaScript

var readdirp = require('..');
readdirp({ root: '.', fileFilter: '*.js' }, function (errors, res) {
if (errors) {
errors.forEach(function (err) {
console.error('Error: ', err);
});
}
console.log('all javascript files', res);
});