{"library":"gonzales-pe","type":"library","category":null,"description":"Gonzales PE is a high-performance CSS parser library for JavaScript, designed to parse CSS, SCSS, Sass, and LESS syntaxes into a detailed Abstract Syntax Tree (AST). It provides a programmatic API for traversing, modifying, and regenerating CSS structures. The current stable version is 4.3.0. While the exact release cadence is not explicitly stated, the project has seen consistent updates, with several patch and minor releases within the v3 and v4 series, indicating active maintenance. Key differentiators include its explicit support for popular CSS preprocessors, making it suitable for tools that need to understand and manipulate these syntaxes, and its focus on providing a low-level AST for granular control over the stylesheet structure. The library allows users to parse a string, create and modify nodes, and then convert the tree back into a CSS string.","language":"javascript","status":"active","version":"4.3.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install gonzales-pe","imports":["const gonzales = require('gonzales-pe');","const parseTree = gonzales.parse(cssString, { syntax: 'scss' });","const newNode = gonzales.createNode({ type: 'ident', content: 'value' });"]},{"cmd":"yarn add gonzales-pe","imports":[]},{"cmd":"pnpm add gonzales-pe","imports":[]}],"homepage":null,"github":"https://github.com/tonyganch/gonzales-pe","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/gonzales-pe","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/gonzales-pe/compatibility"}}