knighn formats

List supported document and export formats.

knighn formats [options]
Option What it does Default
--json Output as JSON.

Examples

List the formats Knighn reads and writes:

knighn formats

  9 formats

[0] Knighn Document (fig)
    role: native-document
    category: document
    ext: .fig
    support: read, write, export-document, export-page, export-selection, export-node
    mime: application/octet-stream
[1] Pencil Document (pen)
    role: interchange-document
    category: document
    ext: .pen
    support: read, write, export-document, export-page, export-selection, export-node
    mime: application/json, text/plain
[2] PNG (png)
    role: derived-export
    category: raster
    ext: .png
    support: export-document, export-page, export-selection, export-node
    mime: image/png
[3] JPG (jpg)
    role: derived-export
    category: raster
    ext: .jpg
    support: export-document, export-page, export-selection, export-node
    mime: image/jpeg
[4] WEBP (webp)
    role: derived-export
    category: raster
    ext: .webp
    support: export-document, export-page, export-selection, export-node
    mime: image/webp
[5] SVG (svg)
    role: derived-export
    category: vector
    ext: .svg
    support: export-document, export-page, export-selection, export-node
    mime: image/svg+xml
[6] PDF (pdf)
    role: derived-export
    category: vector
    ext: .pdf
    support: export-document, export-page, export-selection, export-node
    mime: application/pdf
[7] PowerPoint (pptx)
    role: derived-export
    category: print
    ext: .pptx
    support: export-document, export-page, export-selection, export-node
    mime: application/vnd.openxmlformats-officedocument.presentationml.presentation
[8] JSX (jsx)
    role: derived-export
    category: code
    ext: .jsx
    support: export-selection, export-node
    mime: text/plain, text/jsx

Readable: fig, pen
Writable: fig, pen