Node.js utility; stupidly-simple recursive / non-recursive project file fetcher.
Finds files having a specified extension, and passes the full path to the file as the argument to the callback that you provide. Also runs recursively if recursive is true. This allows automated loading of project files according to your own rules.
var filefetcher = require'filefetcher'var results =resultspushfile /* or whatever you want */filefetcherpath:'./relative-path1' type:'js' recursive:false cb:requirepath:'./relative-path2' type:'js' recursive:false cb:requirepath:'./relative-path3' type:'js' recursive:true cb:customModuleIncludepath:'./views' type:'html' recursive:true cb:YourViewsModuleadd
$ git clone$ cd filefetcher$ npm install expect.js$ npm install -g mocha$ mocha