Skip to content

Instantly share code, notes, and snippets.

@kalinchernev
Created February 4, 2017 00:06
Show Gist options
  • Save kalinchernev/4fb5f5129a202bd14bb9518bcef74244 to your computer and use it in GitHub Desktop.
Save kalinchernev/4fb5f5129a202bd14bb9518bcef74244 to your computer and use it in GitHub Desktop.
Implementing findFiles.js
findFiles(process.argv.slice(2), '.js')
.on('match', file => console.log(file + ' is a match'))
.on('error', err => console.log('Error emitted: ' + err.message))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment