yisibl / resvg-js

A high-performance SVG renderer and toolkit, powered by Rust based resvg and napi-rs.
https://resvg-js.vercel.app/
Mozilla Public License 2.0
1.51k stars 54 forks source link

[Feature request] `@resvg/resvg-cli` support for npx or bunx CLI usage #348

Open Zhengqbbb opened 1 month ago

Zhengqbbb commented 1 month ago

💡 @resvg/resvg-cli or @resvg/cli or resvg-cli

I didn't find a binary distribution library like Python's resvg-cli in the npm ecosystem.

  1. Use npx | bunx to directly call resvg to generate PNG.
  2. Use npm to distribute commands and binary applications, and also distribute through npmmirror in China.

npx @resvg/resvg-cli  --width 1200 in.svg out.png

cat a.svg | npx @resvg/resvg-cli  --width 1200 - out.png
yisibl commented 1 month ago

Feel free to join us in building the resvg-js ecosystem.