
Product
Socket Now Available on Google Cloud Marketplace
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
cssbeautify-cli
Advanced tools
CLI for cssbeautify
npm install -g cssbeautify-cli
cssbeautify-cli [options] -f filename
cssbeautify-cli [options] -f glob/**/*.pattern
Options:
-a, --autosemicolon insert a semicolon after the last ruleset [default: false]
-c, --config json config file to use
-f, --file file to beautify or glob pattern
-h, --help show this help message
-i, --indent string used for the indentation of the declaration (spaces, tabs or number of spaces) [default: " "]
-o, --openbrace the placement of open curly brace, either end-of-line or separate-line [default: "end-of-line"]
-s, --stdin use stdin
-v, --version Display program version
-w, --writefile write output to file
Examples
cssbeautify-cli -i2 -o "separate-line" -f ololo.css
cssbeautify-cli --indent=" " -f nyan.css
cssbeautify-cli -f "src/**/*.css" -w dst/style.css
Notes
optimist
introduces strange behaviour in some cases, e.g.
it's impossible to pass empty indent
option in the following form: -i ''
,
but these solutions work just fine: -i0
, --indent ''
, --indent=''
, --indent=0
-a
option is quite strange sometimes, check test/autosemicolon.js
for
details/*** FILENAME ***/
as separator0.5.3
0.5.2
-f
option now supports glob0.5.0
-w
(--writefile
) option added0.4.1
help
output fixed0.4.0
-s
(--stdin
) option added0.3.0
-c
(--config
) option added0.2.1
0.2.0
-f
(--file
) option0.1.0
-a
(--autosemicolon
), -h
(--help
), -i
(--indent
), -o
(--openbrace
), -v
(--version
)FAQs
CLI for cssbeautify
We found that cssbeautify-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.