{"library":"catharsis","type":"library","category":null,"description":"Catharsis is a JavaScript library designed for parsing and manipulating type expressions used by Google Closure Compiler and JSDoc. It provides robust capabilities to convert these expressions into a structured Abstract Syntax Tree (AST), and then back into a string or a human-readable description. The current stable version is 0.11.0, last published about a year ago, indicating an irregular or maintenance-focused release cadence. Key differentiators include its high accuracy, backed by a Peggy grammar and a comprehensive test suite, and its flexibility in handling both standard Closure Compiler syntax and JSDoc-specific extensions like `string[]` for `Array<string>`. This library is primarily used by tools and systems that need to interpret or generate type annotations, offering programmatic access to the structure and meaning of complex type expressions.","language":"javascript","status":"maintenance","version":"0.11.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install catharsis","imports":["import catharsis from 'catharsis';","import catharsis from 'catharsis';\ncatharsis.parse(typeExpression, options);","import catharsis from 'catharsis';\ncatharsis.stringify(parsedType, options);","import catharsis from 'catharsis';\ncatharsis.describe(parsedType);"]},{"cmd":"yarn add catharsis","imports":[]},{"cmd":"pnpm add catharsis","imports":[]}],"homepage":null,"github":"https://github.com/hegemonic/catharsis","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/catharsis","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/catharsis/compatibility"}}