{"library":"css-syntax-parser","type":"library","category":null,"description":"The `css-syntax-parser` package provides a specialized JavaScript and TypeScript library for parsing and interpreting CSS value definition syntax as specified by MDN (Mozilla Developer Network). It generates an Abstract Syntax Tree (AST) that precisely details the structure, combinators, and multipliers present in a given CSS syntax string. Currently stable at version 1.5.1, the library does not specify a fixed release cadence but has seen ongoing development since its initial release. Its core differentiation lies in its precise adherence to the MDN syntax definition, offering programmatic access to the parsed structure including term types (e.g., `keyword`, `data-type`, `composed`), combinators (e.g., `|`, `&&`), and multipliers (e.g., `{1,4}`, `?`). This enables developers to validate, analyze, or generate CSS property values based on their defined grammar, which is a niche but critical use case for tooling and language servers.","language":"javascript","status":"active","version":"1.5.1","tags":["javascript","css","mdn","syntax","parser","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install css-syntax-parser","imports":["import { resolveSyntax } from 'css-syntax-parser'","import { resolveSyntaxByName } from 'css-syntax-parser'","import { TermType } from 'css-syntax-parser'"]},{"cmd":"yarn add css-syntax-parser","imports":[]},{"cmd":"pnpm add css-syntax-parser","imports":[]}],"homepage":null,"github":"https://github.com/zanomate/css-syntax-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/css-syntax-parser","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/css-syntax-parser/compatibility"}}