repng

4.0.1 • Public • Published

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 (or path to JSON file) to pass to the React component
  -t --type       Type of ouptut (png default) (pdf, jpeg or png)
  --css           Path to CSS file to include
  --webfont       Path to custom webfont for rendering
  --puppeteer     Options for Puppeteer in JSON format

Related

MIT License

Dependents (2)

Package Sidebar

Install

npm i repng

Weekly Downloads

8

Version

4.0.1

License

MIT

Unpacked Size

8.01 kB

Total Files

5

Last publish

Collaborators

  • jxnblk