llm-json-fix
Version:
Fix malformed JSON outputs from Large Language Models (LLMs)
88 lines (87 loc) • 2.23 kB
JSON
{
"name": "llm-json-fix",
"version": "1.0.0",
"description": "Fix malformed JSON outputs from Large Language Models (LLMs)",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"types": "lib/types/index.d.ts",
"exports": {
".": {
"require": "./lib/cjs/index.js",
"import": "./lib/esm/index.js",
"types": "./lib/types/index.d.ts"
},
"./stream": {
"require": "./lib/cjs/stream.js",
"import": "./lib/esm/stream.js",
"types": "./lib/types/stream.d.ts"
}
},
"bin": {
"llm-json-fix": "./bin/llm-json-fix.js"
},
"scripts": {
"build": "npm run build:esm && npm run build:cjs && npm run build:umd && npm run build:types",
"build:esm": "tsc -p tsconfig.json",
"build:cjs": "tsc -p tsconfig-cjs.json",
"build:umd": "webpack",
"build:types": "tsc -p tsconfig-types.json",
"test": "jest",
"lint": "eslint src/**/*.ts",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"build-and-test": "npm run lint && npm run build && npm test",
"prepare": "npm run build",
"prepublishOnly": "npm run build-and-test",
"release": "node scripts/release.js"
},
"keywords": [
"json",
"repair",
"fix",
"llm",
"ai",
"openai",
"anthropic",
"claude",
"gpt",
"json-schema",
"validation"
],
"author": "Than Tsin Oo",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/thantsinoo/llm-json-fix.git"
},
"bugs": {
"url": "https://github.com/thantsinoo/llm-json-fix/issues"
},
"homepage": "https://github.com/thantsinoo/llm-json-fix#readme",
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^20.8.7",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"eslint": "^8.52.0",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"ts-jest": "^29.2.6",
"ts-loader": "^9.5.2",
"typescript": "^5.2.2",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"commander": "^11.1.0"
},
"files": [
"lib",
"bin",
"README.md",
"LICENSE",
"CHANGELOG.md"
],
"engines": {
"node": ">=14.0.0"
}
}