@arkie-ai/svg-snapshot
v0.0.1
Published
A simple tool to render svg snapshot using puppeteer
Downloads
4
Readme
ARKIE Node Svg Snapshot
中文 | English
安装
npm i @arkie-ai/svg-snapshot
yarn add @arkie-ai/svg-snapshot
快速上手
import { render } from '@arkie-ai/svg-snapshot'
run()
async function run() {
const { buffer, errors } = await render(svg, width, height)
errors.forEach(console.error)
console.log(buffer)
}