1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-12-01 21:42:08 +03:00
mdx-deck/packages/export
Brent Jackson 555bacceed v2.0.7
2019-04-05 19:40:19 -04:00
..
.gitignore Add export package 2019-03-09 22:12:02 -05:00
cli.js Add PNG support 2019-03-09 22:24:56 -05:00
index.js Add PNG support 2019-03-09 22:24:56 -05:00
package.json v2.0.7 2019-04-05 19:40:19 -04:00
README.md Add PNG support 2019-03-09 22:24:56 -05:00

MDX Deck Export CLI

npm i -D @mdx-deck/export

Export as PDF

mdx-deck-export pdf deck.mdx

Export as PNG

mdx-deck-export png deck.mdx

Options

-d --out-dir    Output directory
-f --out-file   Output filename
-p --port       Server port
-w --width      Width in pixels
-h --height     Height in pixels
--no-sandbox    Disable puppeteer sandbox