@xcon-viewer/cli
v0.1.7
Published
CLI for validating, converting, rendering, and formatting XCON UI documents.
Downloads
382
Maintainers
Readme
@xcon-viewer/cli
Command line tools for validating, converting, formatting, and rendering public XCON documents.
npx @xcon-viewer/cli validate ./examples/hello/hello.xcon.json
npx @xcon-viewer/cli convert ./examples/hello/hello.xcon.json --to xml --out hello.xcon.xml
npx @xcon-viewer/cli format ./examples/hello/hello.xcon.sketch --out hello.xcon.sketch
npx @xcon-viewer/cli render ./examples/hello/hello.xcon.json --out hello.htmlThe package also exposes command helpers for advanced integrations:
import { validateFile, convertFile, renderFile, formatFile } from '@xcon-viewer/cli';