New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

flair

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flair

Aggressive css compiler.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 12 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts