@nexkit/json-repair 1.0.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/CHANGELOG.md +29 -0
- package/LICENSE +21 -0
- package/README.md +365 -0
- package/dist/cli.js +2744 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +2400 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +343 -0
- package/dist/index.d.ts +343 -0
- package/dist/index.js +2389 -0
- package/dist/index.js.map +1 -0
- package/package.json +97 -0
package/package.json
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nexkit/json-repair",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Repair malformed JSON from LLMs and real-world text — safely, deterministically, with zero dependencies.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"json",
|
|
7
|
+
"repair",
|
|
8
|
+
"fix",
|
|
9
|
+
"parse",
|
|
10
|
+
"malformed",
|
|
11
|
+
"invalid",
|
|
12
|
+
"llm",
|
|
13
|
+
"ai",
|
|
14
|
+
"gpt",
|
|
15
|
+
"claude",
|
|
16
|
+
"extract",
|
|
17
|
+
"markdown",
|
|
18
|
+
"trailing-comma",
|
|
19
|
+
"jsonc",
|
|
20
|
+
"json5",
|
|
21
|
+
"typescript",
|
|
22
|
+
"zero-dependency",
|
|
23
|
+
"cli"
|
|
24
|
+
],
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"author": "nexkit",
|
|
27
|
+
"homepage": "https://github.com/nathanpixodeo/json-repair#readme",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/nathanpixodeo/json-repair.git"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/nathanpixodeo/json-repair/issues"
|
|
34
|
+
},
|
|
35
|
+
"type": "module",
|
|
36
|
+
"sideEffects": false,
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public",
|
|
39
|
+
"provenance": true
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=18"
|
|
43
|
+
},
|
|
44
|
+
"main": "./dist/index.cjs",
|
|
45
|
+
"module": "./dist/index.js",
|
|
46
|
+
"types": "./dist/index.d.ts",
|
|
47
|
+
"exports": {
|
|
48
|
+
".": {
|
|
49
|
+
"import": {
|
|
50
|
+
"types": "./dist/index.d.ts",
|
|
51
|
+
"default": "./dist/index.js"
|
|
52
|
+
},
|
|
53
|
+
"require": {
|
|
54
|
+
"types": "./dist/index.d.cts",
|
|
55
|
+
"default": "./dist/index.cjs"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"./package.json": "./package.json"
|
|
59
|
+
},
|
|
60
|
+
"bin": {
|
|
61
|
+
"json-repair": "dist/cli.js"
|
|
62
|
+
},
|
|
63
|
+
"files": [
|
|
64
|
+
"dist",
|
|
65
|
+
"README.md",
|
|
66
|
+
"CHANGELOG.md",
|
|
67
|
+
"LICENSE"
|
|
68
|
+
],
|
|
69
|
+
"scripts": {
|
|
70
|
+
"build": "tsup",
|
|
71
|
+
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
72
|
+
"typecheck": "tsc --noEmit",
|
|
73
|
+
"lint": "eslint .",
|
|
74
|
+
"lint:fix": "eslint . --fix",
|
|
75
|
+
"format": "prettier --write .",
|
|
76
|
+
"format:check": "prettier --check .",
|
|
77
|
+
"test": "vitest run",
|
|
78
|
+
"test:watch": "vitest",
|
|
79
|
+
"test:coverage": "vitest run --coverage",
|
|
80
|
+
"bench": "node bench/bench.mjs",
|
|
81
|
+
"check:portable": "node scripts/check-portable.mjs",
|
|
82
|
+
"verify": "npm run typecheck && npm run lint && npm run format:check && npm run build && npm run test:coverage && npm run check:portable",
|
|
83
|
+
"prepublishOnly": "npm run verify"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@eslint/js": "^9.15.0",
|
|
87
|
+
"@types/node": "^22.9.0",
|
|
88
|
+
"@vitest/coverage-v8": "^3.0.0",
|
|
89
|
+
"eslint": "^9.15.0",
|
|
90
|
+
"fast-check": "^3.23.1",
|
|
91
|
+
"prettier": "^3.3.3",
|
|
92
|
+
"tsup": "^8.3.5",
|
|
93
|
+
"typescript": "^5.6.3",
|
|
94
|
+
"typescript-eslint": "^8.15.0",
|
|
95
|
+
"vitest": "^3.0.0"
|
|
96
|
+
}
|
|
97
|
+
}
|