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.7.0 to 0.7.1

10

lib/cli.js

@@ -13,3 +13,11 @@ var fs = require('fs'),

str = str || '';
str = str.replace(/\/\*[\s\S]*(?:\*\/)/g, ''); //everything between "/* */"
// replace everything between "/* */" in a non-greedy way
// The English version of the regex is:
// match '/*'
// then match 0 or more instances of any character (including newlines)
// except for instances of '*/'
// then match '*/'
str = str.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\//g, '');
str = str.replace(/\/\/[^\n\r]*/g, ''); //everything after "//"

@@ -16,0 +24,0 @@ return str;

3

package.json
{
"name": "jshint",
"version": "0.7.0",
"version": "0.7.1",
"description": "A CLI for JSHint",

@@ -22,3 +22,2 @@ "homepage": "http://github.com/jshint/node-jshint",

"LICENSE",
"HELP",
"bin/hint",

@@ -25,0 +24,0 @@ "lib"

@@ -13,6 +13,4 @@ # node-jshint

The command line interface looks like this.
jshint -h
jshint path path2 [options]
You can also require JSHint itself as a module.

@@ -72,3 +70,3 @@

If there is a .jshintignore file in your project's directory tree, (also provided you run `jshint` from within your project's directory true) then any directories or files specified will be skipped over. (behaves just like a `.gitignore` file)
If there is a .jshintignore file in your project's directory tree, (also provided you run `jshint` from within your project's directory) then any directories or files specified will be skipped over. (behaves just like a `.gitignore` file)

@@ -75,0 +73,0 @@ **Note:** Pattern matching uses minimatch, with the nocase [option](https://github.com/isaacs/minimatch). When there is no match, it performs a left side match (when no forward slashes present and path is a directory).

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