MCPcopy Index your code
hub / github.com/darkreader/darkreader / formatCSS

Function formatCSS

src/utils/css-text/format-css.ts:4–7  ·  view source on GitHub ↗
(cssText: string)

Source from the content-addressed store, hash-verified

2import type {ParsedAtRule, ParsedCSS, ParsedDeclaration, ParsedStyleRule} from '../css-text/parse-css';
3
4export function formatCSS(cssText: string): string {
5 const parsed = parseCSS(cssText);
6 return formatParsedCSS(parsed);
7}
8
9export function formatParsedCSS(parsed: ParsedCSS): string {
10 const lines: string[] = [];

Callers 3

collectCSSFunction · 0.90
formatDynamicThemeFixesFunction · 0.90
text.tests.tsFile · 0.90

Calls 2

parseCSSFunction · 0.90
formatParsedCSSFunction · 0.85

Tested by

no test coverage detected