Skip to content

A simple tool to render and snapshot svg using puppeteer

License

Notifications You must be signed in to change notification settings

ARKie-AI/node-svg-snapshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple tool to render and snapshot svg using puppeteer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors