@arkie-ai/svg-snapshot

A simple tool to render svg snapshot using puppeteer

Usage no npm install needed!

<script type="module">
  import arkieAiSvgSnapshot from 'https://cdn.skypack.dev/@arkie-ai/svg-snapshot';
</script>

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)
}