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

gulp-jsinspect

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-jsinspect - npm Package Compare versions

Comparing version 0.0.0 to 1.0.0

index.js

51

package.json
{
"name": "gulp-jsinspect",
"version": "0.0.0",
"description": "A JavaScript copy-paste analysis gulp task",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "1.0.0",
"description": "Gulp plugin for running jsinspect (detect copy-pasted and structurally similar code)",
"license": "MIT",
"homepage": "https://github.com/alexeyraspopov/gulp-jsinspect",
"repository": {
"type": "git",
"url": "https://github.com/alexeyraspopov/gulp-jsinspect.git"
"url": "https://github.com/alexeyraspopov/gulp-jsinspect"
},
"author": "Alexey Raspopov (https://github.com/alexeyraspopov)",
"contributors": [
{
"name": "Dmitry Semigradsky",
"email": "semigradskyd@gmail.com",
"url": "https://github.com/Semigradsky"
}
],
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"keywords": [
"gulpplugin",
"analysis",
"analyze",
"report",
"duplication",
"copy-paste"
"inspect",
"detect",
"code",
"duplicate",
"structure",
"copy",
"paste"
],
"author": "Alexey Raspopov <avenger7x13@gmail.com> (https://github.com/alexeyraspopov)",
"license": "MIT",
"bugs": {
"url": "https://github.com/alexeyraspopov/gulp-jsinspect/issues"
},
"homepage": "https://github.com/alexeyraspopov/gulp-jsinspect"
"dependencies": {
"chalk": "*",
"gulp-util": "^3.0.0",
"jsinspect": "^0.5.0",
"through2": "^0.6.1",
"util-extend": "^1.0.1"
}
}

@@ -1,27 +0,64 @@

# gulp-jsinspect
# gulp-[jsinspect](https://github.com/danielstjules/jsinspect)
> Detect copy-pasted and structurally similar code with [JSInspect](https://github.com/danielstjules/jsinspect)
> Gulp plugin for running jsinspect (detect copy-pasted and structurally similar code)
## Install
npm install --save-dev gulp-jsinspect
```sh
$ npm install --save-dev gulp-jsinspect
```
## Usage
var gulp = require('gulp'),
jsinspect = require('gulp-jsinspect');
```js
var gulp = require('gulp');
var jsinspect = require('gulp-jsinspect');
gulp.task('default', function(){
return gulp.src('*.js')
.pipe(jsinspect({/* options */}));
});
gulp.task('default', function () {
return gulp.src('app.js')
.pipe(jsinspect({
'threshold': 10,
'identifiers': true,
'suppress': 0
}));
});
```
## Options
* `threshold` - minimum size of nodes (default: 15)
* `identifiers` - match identifiers (default: false)
* `diff` - enable 2-way diffs (default: false)
### Options
## License
#### threshold
Type: `Number`
Default value: `15`
[MIT License](https://en.wikipedia.org/wiki/MIT_License) &copy; Alexey Raspopov
Number of nodes.
#### suppress
Type: `Number`
Default value: `100`
length to suppress diffs (off: 0).
#### identifiers
Type: `Boolean`
Default value: `false`
Match identifiers.
#### noDiff
Type: `Boolean`
Default value: `false`
Disables 2-way diffs.
#### noColor
Type: `Boolean`
Default value: `false`
Disables colors.
#### failOnMatch
Type: boolean
Default value: `true`
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