New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

phplint

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phplint - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

5

index.js

@@ -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) {

2

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc