CSScomb Core is a foundational framework designed for building custom CSS postprocessors. It provides a robust set of features, including a powerful parser that supports various CSS preprocessor syntaxes (CSS, Less, Sass, SCSS), an API for defining and managing processing options, and utilities for applying these processes to files, directories, or strings. The current stable version, 3.0.6, continues to focus on providing a modular and extensible architecture for linting and transforming CSS code programmatically. Its key differentiators lie in its flexible plugin system, allowing developers to create highly specific styling rules and formatting logic, and its ability to handle different CSS-like syntaxes through a unified interface. While a specific release cadence isn't published, it appears to be maintained as a core component for CSS processing tasks.
npm install csscomb-coreVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import CSScomb Core, configure it with rules, and then use it to process and lint a CSS string asynchronously.
Always use `const Comb = require('csscomb-core');` for reliable integration in both CommonJS and environments that support CJS interop.Always use `await` with these methods within an `async` function, or chain `.then()` and `.catch()` handlers explicitly to manage asynchronous operations.
For clearer configuration management, it's recommended to instantiate with `new Comb([], syntax)` and then load your configuration explicitly using `comb.configure(yourConfigObject)`.
Ensure the `syntax` parameter is one of the explicitly supported values ('css', 'less', 'sass', 'scss') and accurately matches the input content being processed.Ensure `const Comb = require('csscomb-core');` is correctly placed and use `new Comb([], 'css');` to create an instance.Verify the `Comb` import and instance creation: `const comb = new Comb([], 'css');`.
Add `await` before the promise-returning call, or handle the Promise explicitly: `await comb.processString(...)` or `comb.processString(...).then(...).catch(...)`.
Use one of the officially supported syntaxes: `'css'`, `'less'`, `'sass'`, or `'scss'`.
No dependency data recorded yet.