Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
css-zero-beautify
Advanced tools
Friendly and forgiving CSS/SASS/LESS beautifier with lots of tests. Memory-efficient and Web Worker compatible.
This is a work in progress. Don't use it yet!
import Beautify, { OUTPUT_FORMATS } from 'css-zero-beautifier';
const css = 'text selector1, text selector2 { prop; prop2 { value } /* comment */ }';
let result = Beautify(css);
// result is,
//
// text selector1,
// text selector2 {
// prop;
// prop2 {
// value;
// }
// /* comment */
// }
result = Beautify(css, { output: OUTPUT_FORMATS.html });
// result is,
//
// <span class="b-selector">text selector1</span><span class="b-comma">,</span><br/>
// <span class="b-selector">text selector2</span> <span class="b-open-rule">{</span><br/>
// <span class="b-prop">prop</span><span class="b-prop-close">;</span><br/>
// <span class="b-selector">prop2</span> <span class="b-open-rule">{</span><br/>
// <span class="b-prop">value</span><span class="b-prop-close">;</span><br/>
// <span class="b-close-rule">}</span><br/>
// <span class="b-comment">/* comment */</span><br/>
// <span class="b-close-rule">}</span><br/>
8KB gzipped (that includes all deps).
Just want a lexer? Try css-zero-lexer
.
Part of XML-Zero.js
FAQs
Friendly and forgiving CSS/SASS/LESS beautifier
We found that css-zero-beautify 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.