Comparing version 0.0.9 to 0.0.10
@@ -10,2 +10,4 @@ 'use strict'; | ||
var stdout = false; | ||
var linter = function (file, cb) { | ||
@@ -17,3 +19,3 @@ cache.has(file, function(err, isCached, hash) { | ||
exec('php -l '+file, {silent: true}, function (code, output) { | ||
exec('php -l '+file, {silent: ! stdout}, function (code, output) { | ||
var err = (code === 0) ? null : output.trim(); | ||
@@ -61,2 +63,3 @@ | ||
var limit = options.limit ? options.limit : 10; | ||
stdout = options.stdout ? options.stdout : false; | ||
@@ -63,0 +66,0 @@ async.eachLimit(result, limit, linter, function (err) { |
{ | ||
"name": "phplint", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "wrapper for php -l", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -58,4 +58,16 @@ # phplint | ||
### stdout | ||
Prints to stdout, defaults to false. Useful for debugging. | ||
```js | ||
var phplint = require('phplint'); | ||
phplint('src/*.php', { | ||
stdout: true | ||
}); | ||
``` | ||
## License | ||
[MIT](http://opensource.org/licenses/MIT) © [Wayne Ashley Berry](https://twitter.com/waynethebrain) |
5541
98
73