Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jshint

Package Overview
Dependencies
Maintainers
2
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jshint - npm Package Compare versions

Comparing version 0.5.8 to 0.5.9

9

lib/cli.js

@@ -6,2 +6,7 @@ var fs = require('fs'),

function existsSync() {
var obj = fs.existsSync ? fs : path;
return obj.existsSync.apply(obj, arguments);
}
function _help() {

@@ -23,3 +28,3 @@ process.stdout.write(fs.readFileSync(__dirname + "/../HELP", "utf-8"));

function _loadAndParseConfig(filePath) {
return path.existsSync(filePath) ?
return existsSync(filePath) ?
JSON.parse(_removeJsComments(fs.readFileSync(filePath, "utf-8"))) : {};

@@ -126,3 +131,3 @@ }

if (path.existsSync(pathsToIgnore)) {
if (existsSync(pathsToIgnore)) {
ignore = fs.readFileSync(pathsToIgnore, "utf-8").split("\n").map(function (line) {

@@ -129,0 +134,0 @@ return line.trim();

{
"name": "jshint",
"version": "0.5.8",
"version": "0.5.9",
"description": "A CLI for JSHint",

@@ -5,0 +5,0 @@ "homepage": "http://github.com/jshint/node-jshint",

@@ -7,3 +7,3 @@ # node-jshint

To use jshint from any location (for npm v1.x) you need to install using the global (-g) flag.
To use jshint from any location (for npm v1.x) you need to install using the global (-g) flag.

@@ -28,2 +28,3 @@ npm install -g jshint

* [vim syntastic](https://github.com/scrooloose/syntastic) - Run node-jshint at each file save.
* [sublime-jshint](https://github.com/uipoet/sublime-jshint) - `F7` or `command-B` on any .js file. `F4` next error line,column. `shift-F4` previous error line,column.

@@ -30,0 +31,0 @@ ## Custom Reporters

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