polydup 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/index.d.ts +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# polydup
|
|
2
2
|
|
|
3
3
|
Node.js bindings for PolyDup - a cross-language duplicate code detector powered by Rust.
|
|
4
4
|
|
|
@@ -13,13 +13,13 @@ Node.js bindings for PolyDup - a cross-language duplicate code detector powered
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npm install
|
|
16
|
+
npm install polydup
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Quick Start
|
|
20
20
|
|
|
21
21
|
```javascript
|
|
22
|
-
const { findDuplicates } = require('
|
|
22
|
+
const { findDuplicates } = require('polydup');
|
|
23
23
|
|
|
24
24
|
findDuplicates(['./src', './lib'], 50, 0.85)
|
|
25
25
|
.then(report => {
|
|
@@ -75,7 +75,7 @@ Returns the library version string.
|
|
|
75
75
|
Type definitions are automatically generated:
|
|
76
76
|
|
|
77
77
|
```typescript
|
|
78
|
-
import { findDuplicates, Report, DuplicateMatch } from '
|
|
78
|
+
import { findDuplicates, Report, DuplicateMatch } from 'polydup';
|
|
79
79
|
|
|
80
80
|
const report: Report = await findDuplicates(['./src']);
|
|
81
81
|
|
|
@@ -122,7 +122,7 @@ interface ScanStats {
|
|
|
122
122
|
## Example: Custom Analysis
|
|
123
123
|
|
|
124
124
|
```javascript
|
|
125
|
-
const { findDuplicates } = require('
|
|
125
|
+
const { findDuplicates } = require('polydup');
|
|
126
126
|
|
|
127
127
|
async function analyzeCrossProject() {
|
|
128
128
|
const [frontend, backend] = await Promise.all([
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polydup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Cross-language duplicate code detector - Node.js bindings",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"npm/**/*.node"
|
|
55
55
|
],
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"polydup-win32-x64-msvc": "0.8.
|
|
58
|
-
"polydup-darwin-x64": "0.8.
|
|
59
|
-
"polydup-linux-x64-gnu": "0.8.
|
|
60
|
-
"polydup-darwin-arm64": "0.8.
|
|
61
|
-
"polydup-linux-arm64-gnu": "0.8.
|
|
57
|
+
"polydup-win32-x64-msvc": "0.8.0",
|
|
58
|
+
"polydup-darwin-x64": "0.8.0",
|
|
59
|
+
"polydup-linux-x64-gnu": "0.8.0",
|
|
60
|
+
"polydup-darwin-arm64": "0.8.0",
|
|
61
|
+
"polydup-linux-arm64-gnu": "0.8.0"
|
|
62
62
|
}
|
|
63
|
-
}
|
|
63
|
+
}
|