{"library":"css","type":"library","category":null,"description":"The `css` package is a fundamental JavaScript library designed for robust parsing and stringifying of Cascading Style Sheets (CSS). It serves as a core component for various CSS processing tools, including preprocessors, postprocessors, and linting utilities. At its current stable version, 3.0.0, it offers `css.parse()` to convert raw CSS strings into a detailed Abstract Syntax Tree (AST) object, and `css.stringify()` to transform such an AST back into a minified or formatted CSS string. The library provides comprehensive options for error handling, including a 'silent' mode for collecting parsing errors without throwing, and extensive support for source map generation to maintain traceability between original and processed CSS. Its primary differentiator lies in its adherence to the reworkcss AST specification, offering a consistent and manipulable representation of CSS for complex transformations. While the provided documentation highlights CommonJS usage, modern projects might explore ESM compatibility, though it's not explicitly documented in the given excerpt. The project generally follows semantic versioning without a fixed release cadence.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","css","parser","stringifier","stylesheet"],"last_verified":"Wed May 27","install":[{"cmd":"npm install css","imports":["const css = require('css');","const css = require('css');\nconst ast = css.parse('body { color: red; }');","const css = require('css');\nconst cssString = css.stringify(ast);"]},{"cmd":"yarn add css","imports":[]},{"cmd":"pnpm add css","imports":[]}],"homepage":null,"github":"https://github.com/reworkcss/css","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/css","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/compatibility"}}