UNPKG

partial-xml-stream-parser

Version:

A lenient XML stream parser for Node.js and browsers that can handle incomplete or malformed XML data, with depth control, CDATA support for XML serialization and round-trip parsing, wildcard pattern support for stopNodes, and CDATA handling within stopNo

60 lines (59 loc) 1.5 kB
{ "name": "partial-xml-stream-parser", "version": "1.9.2", "description": "A lenient XML stream parser for Node.js and browsers that can handle incomplete or malformed XML data, with depth control, CDATA support for XML serialization and round-trip parsing, wildcard pattern support for stopNodes, and CDATA handling within stopNodes. Now fully written in TypeScript with complete type safety.", "main": "dist/index.js", "types": "dist/index.d.ts", "repository": { "type": "git", "url": "https://github.com/samhvw8/partial-xml-stream-parser.git" }, "files": [ "dist/", "src/" ], "scripts": { "build": "tsc", "build:watch": "tsc --watch", "clean": "rm -rf dist index.js index.d.ts index.js.map index.d.ts.map", "prepublishOnly": "npm run clean && npm run build", "test": "CI=true vitest", "bench": "vitest bench" }, "keywords": [ "xml", "stream", "parser", "partial", "lenient", "streaming", "llm", "ai", "language model", "conditional", "conditional parsing", "cdata", "serialization", "round-trip", "depth control", "max depth", "nesting limit", "wildcard", "glob patterns", "stopnodes", "pattern matching", "typescript", "type-safe", "types", "browser", "universal", "isomorphic" ], "author": "", "license": "MIT", "devDependencies": { "@types/node": "^24.0.1", "typescript": "^5.0.0", "vitest": "^3.1.3" } }