Skip to content
forked from jxnblk/repng

React component to PNG converter

Notifications You must be signed in to change notification settings

rkuchkarov/repng

 
 

Repository files navigation

repng

React component to PNG converter, built with Puppeteer

npm i -g repng
repng Icon.js --width 512 --height 512 --out-dir assets
Usage
  $ repng <ReactComponent>

Options
  -d --out-dir    Directory to save file to
  -f --filename   Specify a custom output filename
  -w --width      Width of image
  -h --height     Height of image
  -p --props      Props in JSON format to pass to the React component
  --css           Path to CSS file to include
  --webfont       Path to custom webfont for rendering

Related

MIT License

About

React component to PNG converter

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%