Aggressive css compiler. [ON DEVELOPMENT]
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
LICENSE
README.md
index.js
package.json

README.md

flair

Aggressive css compiler.


Install

Install flair with npm:

$ npm install flair -g

Parser

var flair = require('flair')
flair.parse('jinja { name: "jinja" }')

The results returned by flair.parse:

{
  "filename": null,
  "stylesheet": {
    "rules": [
      {
        "selector": "jinja",
        "start": 0,
        "end": 24,
        "declarations": [
          {
            "property": "name",
            "value": "jinja",
            "start": 9,
            "end": 21
          }
        ]
      }
    ]
  }
}

The AST structure is the same as css-parse, but extended with start end end.

Changelog