dogma-css-parser

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i dogma-css-parser

Weekly Downloads

3

Version

0.0.2

License

MIT

Last publish

Collaborators

  • dogmaiobot
  • sandersky