sketch-render

* SketchAPI offline renderer. * Exports SketchAPI documents into PDF, SVG, JPEG & PNG formats!

Usage no npm install needed!

<script type="module">
  import sketchRender from 'https://cdn.skypack.dev/sketch-render';
</script>

README

sketch-render

  • SketchAPI offline renderer.
  • Exports SketchAPI documents into PDF, SVG, JPEG & PNG formats!

Install

Now the command sketch-render should be available in terminal! Cool!

Usage

sketch-render supports 3 flags:

  • --build, -b
    • URI to your SketchAPI build.
  • --commands, -o
    • Accepts an array of commands. Commands are run through the sketch.save.multiple(...) method.
  • --output, -o
    • The file output path. The output file type is determined by the suffix of this path. Currently types supported are: PNG, JPG, SVG, and PDF.
  • --verbose, -v
    • Get a looooot of information about what exactly is happening.

Example

# Load up an input Sketch and save an SVG and PDF copy in the current directory
sketch-render <input> -b <build> -o file.svg -o file.pdf

License

Copyright (C) SketchIO, Inc. All Rights Reserved.
Unauthorized copying of this repository is prohibited.
For licensing <https://sketch.io/contact.html>

Fedora notes

https://forums.aws.amazon.com/message.jspa?messageID=714119
yum install xorg-x11-server-Xvfb.x86_64
yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm