Skip to content

Instantly share code, notes, and snippets.

@oliverswitzer
Created February 24, 2014 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oliverswitzer/9194796 to your computer and use it in GitHub Desktop.
Save oliverswitzer/9194796 to your computer and use it in GitHub Desktop.
Example of calling my own custom module in Node
var dirListModule = require('./dirListModule.js')
var dirPath = process.argv[2];
var extFilter = process.argv[3];
dirListModule(dirPath, extFilter, function(err, filteredList) {
filteredList.forEach(function(value) {
console.log(value);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment