百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

convert-svg

> 编程语言
开源

Node.js 包,用于使用无头 Chromium 将 SVG 转换为其他格式

200 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Node.js 包,用于使用无头 Chromium 将 SVG 转换为其他格式

convert-svg

This monorepo contains the following Node.js packages that can convert an SVG into another format using headless Chromium.

These are primarily split up into core packages that support the format-specific packages:

  • Core
    • convert-svg-core
    • convert-svg-core-cli
    • convert-svg-core-test
  • JPEG
    • convert-svg-to-jpeg
    • convert-svg-to-jpeg-cli
  • PNG
    • convert-svg-to-png
    • convert-svg-to-png-cli
  • WEBP
    • convert-svg-to-webp
    • convert-svg-to-webp-cli

As you can perhaps tell, the format-specific packages follow the below naming convention:

convert-svg-to-
convert-svg-to--cli

Where the first package is intended to be used as a standard library and imported into your own code and the second is intended to be installed and used as a tool via the CLI.

It works by using headless Chromium to take a screenshot of the SVG and outputs the buffer. This does mean that the supported output formats are limited to those supported by that the API for headless Chromium, however, as more formats are added, additional packages can easily be created. The CLI packages are installed with puppeteer which downloads and installs a headless Chromium instance, however, the others only use puppeteer-core which means that a Chromium instance must be provided and connected by the dependant (e.g. using puppeteer or an executable path).

The core packages are not intended for use outside this monorepo and only serve to aid development and maintenance of the other packages.

Explore the above packages to learn more on how to install and use each one.

Bugs

If you have any problems with this package or would like to see changes currently in development, you can do so here.

Contributors

If you want to contribute, you're a legend! Information on how you can do so can be found in CONTRIBUTING.md. We want your suggestions and pull requests!

A list of all contributors can be found in AUTHORS.md.

License

Copyright © 2025 neocotic

See LICENSE.md for more information on our MIT license.

Issues· 13 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptconverterjavascriptjpegnodejs

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言