
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
beautify-css
Advanced tools
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
.
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
FAQs
make your CSS pretty
We found that beautify-css 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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.