@structium/css - API documentation β
Functions β
deserialize() β
ts
function deserialize(input: string): Promise<Root_>Deserialize a CSS string into a PostCSS AST.
Parameters β
| Parameter | Type | Description |
|---|---|---|
input | string | CSS source string |
Returns β
Promise<Root_>
Parsed CSS AST (PostCSS Root node)
serialize() β
ts
function serialize(input: Root_): Promise<string>Serialize a PostCSS AST back into a CSS string.
Parameters β
| Parameter | Type | Description |
|---|---|---|
input | Root_ | PostCSS Root node |
Returns β
Promise<string>
CSS string
Type Aliases β
CSSAST β
ts
type CSSAST: Root;