A simple node wrapper using jshint to find syntax error.
There are two different methods available:
-
Pass location to the function and method will look for all the files within the location specified.
var staticErrs = require('./lib/staticerrs.js'); staticErrs('./lib/', function(err, data){ if(err) console.log(err); console.log(data); });
-
If no location passed, method will look for all the folders present in the root level.
var staticErrs = require('./lib/staticerrs.js'); staticErrs(function(err, data){ if(err) console.log(err); console.log(data); });
========================================================================================
- Ability to define file types
- Handler to output to multiple modules for consumption of logs.