Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 376 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 376 Bytes

dogma-css-parser

CSS parser and compiler.

npm install dogma-css-parser

Usage

Parser

To parse a CSS string into an AST you can do the following:

import {parse} from 'dogma-css-parser'

const css = '.foo {color: red;}'
const ast = parse(css)

The above example will set the constant ast to the following AST:

Compiler