Methods
-
generateCSSPatch(original, expected) → {string}
-
Generate CSS difference patch between two CSS stylesheets.
Parameters:
Name Type Description originalstring Original CSS stylesheet.
expectedstring Desired CSS stylesheet.
Returns:
string -CSS patch difference.
-
transformCSS(css, transformer) → {string}
-
Apply transformations to CSS AST. Transformer function can ether return AST or falsy value (if transformations was applied to the original AST).
Parameters:
Name Type Description cssstring Stylesheet to transform.
transformerfunction Transformer function.
Returns:
string -Transformed stylesheet.