wallet-core/node_modules/readdirp/examples/callback-api.js

11 lines
250 B
JavaScript
Raw Normal View History

2017-05-03 15:35:00 +02:00
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);
});