
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.