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

beautify-css

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

beautify-css

make your CSS pretty

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

beautify-css

beautify-css is a command-line CSS beautifier that uses the css npm module to parse and format valid CSS.

You can install it with npm install [-g] beautify-css.

Usage

beautify-css [options] [input] [output]

Options:
  --indent, -i    indent with this number of spaces (or string)    
  --encoding, -e  string encoding (default: "utf8")                
  --compress, -c  compress output, removing whitespace and comments
  --source-map    generate a source map, and write it to this file 
  --source-in     reference one or more input source maps          
  --in-place, -p  modify the input file in place                   
  -v              output helpful debugging messages                

Some examples:

# read from and write to files
beautify-css ugly.css pretty.css

# or you can use the --in-place/-p to overwrite the file
# (remember to back it up or check it in first!)
beautify-css -p style.css

# read ugly css from stdin, write to a filename
echo 'body{margin:0}' | beautify-css - pretty.css
# or redirect stdout to a file
echo 'body{margin:0}' | beautify-css > pretty.css

# pipe pretty css to another tool, such as
# myth: <https://github.com/segmentio/myth>
echo 'body{margin:0}' | beautify-css | myth > beautiful.css

Keywords

css

FAQs

Package last updated on 23 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