repng

React component to PNG converter

MIT 21 个版本
安装
npm install repng
yarn add repng
pnpm add repng
bun add repng
README

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

MIT License

版本列表
4.0.1 2020-03-16
4.0.0 2020-03-16
3.2.0 2019-03-08
3.1.1 2018-12-05
3.1.0 2018-09-02
3.0.3 2018-09-02
3.0.2 2018-08-18
3.0.1 2018-08-18
3.0.0 2018-04-23
2.0.0-alpha.1 2017-04-25
1.0.1 2017-12-21
1.0.0 2017-04-20
1.0.0-b8 2017-04-19
1.0.0-b7 2017-02-26
1.0.0-b6 2017-02-19
1.0.0-b5 2017-02-19
1.0.0-b4 2016-11-15
1.0.0-b3 2016-11-08
1.0.0-b2 2016-11-07
1.0.0-b1 2016-11-07
1.0.0-b0 2016-11-07