
Security News
Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI Lowers the Cost of Forking Open Source
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.
Structural formatter for SVG documents.
npm install -g svg-format # unscoped alias
npm install -g @svg-toolkit/svg-format # canonical package
svg-format icon.svg
npx svg-format icon.svg
@svg-toolkit/svg-format is the canonical package; unscoped svg-format is a
thin alias that depends on it. Either install gives you the same bin. Or grab
the whole toolkit at once with
@kjanat/svg-toolkit.
The package resolves a prebuilt native binary for your platform via
optionalDependencies — no postinstall step, no network access at runtime.
On Linux, the binary is picked by the host's libc: musl hosts get the musl
build, glibc hosts get the glibc build. npm, pnpm and yarn honour the
libc field and install only the right one; bun and deno install both, so
detection settles it at launch. Set SVG_LIBC=musl or SVG_LIBC=glibc to
override if detection is ever wrong.
Formatting behavior and options: https://github.com/kjanat/svg#readme
use svg_format::{
format,
format_with_options,
AttributeLayout,
AttributeSort,
FormatOptions,
QuoteStyle,
WrappedAttributeIndent,
};
let pretty = format(source);
let pretty_custom = format_with_options(
source,
FormatOptions {
indent_width: 4,
insert_spaces: false,
max_inline_tag_width: 100,
attribute_sort: AttributeSort::Canonical,
attribute_layout: AttributeLayout::Auto,
attributes_per_line: 1,
space_before_self_close: true,
quote_style: QuoteStyle::Preserve,
wrapped_attribute_indent: WrappedAttributeIndent::OneLevel,
},
);
svg-format is also available as a CLI binary from the same crate
(cargo install svg-format, or npm install --global svg-format /
@svg-toolkit/svg-format for the prebuilt binary).
# Format from stdin to stdout
cat icon.svg | svg-format --stdin
# Check whether a file would change
svg-format --check icon.svg
# Format file in place
svg-format --in-place icon.svg
FAQs
Structural formatter for SVG documents.
The npm package svg-format receives a total of 6 weekly downloads. As such, svg-format popularity was classified as not popular.
We found that svg-format demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.