-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
96 lines (96 loc) · 2.27 KB
/
Copy pathpackage.json
File metadata and controls
96 lines (96 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"name": "@krkarma777/string-diff",
"version": "1.2.0",
"description": "Text diff for JavaScript/TypeScript by word, character, line, locale-aware word, or grapheme — exact shortest edit scripts by default, with an optional bounded-search heuristic that may return a non-minimal result; zero dependencies.",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"files": [
"dist"
],
"sideEffects": false,
"engines": {
"node": ">=16"
},
"scripts": {
"build": "tsup",
"test": "node --test test/*.test.ts",
"test:coverage": "c8 npm test",
"typecheck": "tsc --noEmit",
"demo": "npm run build && cp dist/string-diff.min.js demo/",
"bench": "node bench/compare.mjs",
"bench:legacy": "node bench/bench.mjs",
"perf:smoke": "node scripts/perf-smoke.mjs",
"prepublishOnly": "npm run typecheck && npm test && npm run build"
},
"c8": {
"include": [
"src/**"
],
"checkCoverage": true,
"statements": 97,
"branches": 92,
"functions": 99,
"lines": 97,
"reporter": [
"text"
]
},
"keywords": [
"diff",
"text-diff",
"string-diff",
"word-diff",
"char-diff",
"line-diff",
"difference",
"compare",
"compare-strings",
"string-comparison",
"text-comparison",
"myers",
"myers-diff",
"shortest-edit-script",
"edit-distance",
"lcs",
"longest-common-subsequence",
"unicode",
"cjk",
"korean",
"emoji",
"typescript",
"zero-dependencies",
"browser",
"performance"
],
"author": "krkarma777",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/krkarma777/string-diff.git"
},
"homepage": "https://github.com/krkarma777/string-diff#readme",
"bugs": {
"url": "https://github.com/krkarma777/string-diff/issues"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@types/node": "^24.13.3",
"c8": "^12.0.0",
"diff": "^9.0.0",
"diff-match-patch": "^1.0.5",
"fast-myers-diff": "^3.2.0",
"tsup": "^8.5.1",
"typescript": "^5.9.3"
}
}