Reindent and reformat CSS
JavaScript
Pull request Compare This branch is 2 commits ahead, 42 commits behind senchalabs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
README.md
package.json

README.md

CSSBeautify

A quick repackaging of Sencha Labs' CSS beautification library - cssbeautify - as a node.js npm module.

Installation

npm install cssbeautify

Usage

var cssbeautify = require("cssbeautify");

var beautiful = cssbeautify(css, {

    indent: "\t",                   // String used for indentation, default is 4 spaces
    open brace: "seperate-line"     // Placement of open curly brace:  "end-of-line" (default) or "separate-line"

});