UNPKG

learnyounode

Version:

Learn You The Node.js For Much Win! An intro to Node.js via a set of self-guided workshops.

15 lines (12 loc) 307 B
'use strict' const filterFn = require('./solution_filter.js') const dir = process.argv[2] const filterStr = process.argv[3] filterFn(dir, filterStr, function (err, list) { if (err) { return console.error('There was an error:', err) } list.forEach(function (file) { console.log(file) }) })