Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

cssbeautifier

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssbeautifier

Beautify css code

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

cssbeautifier

Beautify css code

var cssbeautifier = require('cssbeautifier');

install

npm install cssbeautifier --save

test

mocha

API

cssbeautifier(str, options)

  • {string|readstream} str required
    The code string or file stream
  • {object} options
    • {string} indent [options.indent = ' ']
      Indent for css property
    • {boolean} ruleNewline [options.boolean = false]
      a new rule start with new line
    • {string} filepath
      useful for error message, if use read stream, you can optional this param.
    • {function} done
      when the first param is stream, it's async.
var css = cssbeautifier('a{color: red}');

// or stream
cssbeautifier(fs.createReadStream('path/demo.css'), {
  done: function(css) {

  }
})

Keywords

css

FAQs

Package last updated on 12 Feb 2015

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