llm-stream-parser
Version:
A TypeScript library for parsing and processing structured data from LLM streaming responses with custom tag definitions and event-driven architecture
89 lines (88 loc) • 2.4 kB
JSON
{
"name": "llm-stream-parser",
"version": "1.0.1",
"description": "A TypeScript library for parsing and processing structured data from LLM streaming responses with custom tag definitions and event-driven architecture",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist",
"src",
"README.md",
"LICENSE"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"scripts": {
"build": "tsup",
"build:types": "tsc --emitDeclarationOnly",
"dev": "tsup --watch",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "eslint src --ext .ts,.tsx --fix",
"format": "prettier --write \"src/**/*.{ts,tsx,json,md}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx,json,md}\"",
"clean": "rimraf dist",
"prepublishOnly": "npm run clean && npm run build",
"release": "npm run test && npm run build && npm publish",
"docs": "typedoc src/index.ts"
},
"keywords": [
"llm",
"stream",
"parser",
"typescript",
"ai",
"openai",
"claude",
"gemini",
"event-driven",
"real-time",
"streaming",
"xml",
"tag-parser",
"nlp"
],
"author": {
"name": "Baran Karatas",
"url": "https://github.com/brankrts"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/brankrts/llm-stream-parser.git"
},
"bugs": {
"url": "https://github.com/brankrts/llm-stream-parser/issues"
},
"homepage": "https://github.com/brankrts/llm-stream-parser#readme",
"engines": {
"node": ">=14.0.0"
},
"devDependencies": {
"@types/jest": "^29.5.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"esbuild": "^0.25.5",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.5.0",
"prettier": "^2.8.8",
"rimraf": "^5.0.0",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.0",
"tsup": "^8.5.0",
"typedoc": "^0.24.0",
"typescript": "^5.0.0"
},
"sideEffects": false
}