{"library":"css-variables-parser","type":"library","category":null,"description":"The `css-variables-parser` library provides a focused utility for extracting CSS custom properties (variables) from CSS code. It offers both string-based parsing via the `parse` function and file-based parsing functionalities, including asynchronous (`parseFileAsync`, `parseFile`) and synchronous (`parseFileSync`) methods. The current stable version is 1.0.1. This library is specifically designed for scenarios requiring programmatic access to CSS variables, such as dynamic theme generation, build-time CSS processing, or integration with component libraries. A key differentiator is its optional support for custom CSS parsers, enabling integration with preprocessors like SugarSS. Its release cadence appears to be driven by specific bug fixes or minor feature enhancements rather than frequent major updates, reflecting its role as a dedicated parsing utility within the broader JavaScript ecosystem.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install css-variables-parser","imports":["import { parse } from 'css-variables-parser';","import { parseFile } from 'css-variables-parser';","const { parseFileSync } = require('css-variables-parser');"]},{"cmd":"yarn add css-variables-parser","imports":[]},{"cmd":"pnpm add css-variables-parser","imports":[]}],"homepage":null,"github":"https://github.com/nkt/css-variables-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/css-variables-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-variables-parser/compatibility"}}