Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc