polydup 0.8.0 → 0.8.2
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/npm/darwin-arm64/polydup-node.darwin-arm64.node +0 -0
- package/npm/darwin-x64/polydup-node.darwin-x64.node +0 -0
- package/npm/linux-x64-gnu/polydup-node.linux-x64-gnu.node +0 -0
- package/npm/win32-x64-msvc/polydup-node.win32-x64-msvc.node +0 -0
- package/package.json +2 -2
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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polydup",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Cross-language duplicate code detector - Node.js bindings",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -60,4 +60,4 @@
|
|
|
60
60
|
"polydup-darwin-arm64": "0.8.0",
|
|
61
61
|
"polydup-linux-arm64-gnu": "0.8.0"
|
|
62
62
|
}
|
|
63
|
-
}
|
|
63
|
+
}
|