nopeslide / cli

CLI for WaveDrom

Home Page:https://wavedrom.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPM version Build Status

wavedrom-cli

WaveDrom command-line interface

Install

Require node.js >=8

npm i wavedrom-cli --save-dev

Use

Options

-i <input wavedrom source filename>
-p file.png <output PNG image file name>
-s <output SVG image file name>

Example

wavedrom-cli -i test/src/step4.js -p step4.png -s step4.svg

Export with Inkscape

Inkscape is awesome SVG editor that can be used to convert SVG to many other formats: PDF, PS, EPS, EMF, WMF, PNG. etc. It can be chained with wavedrom-cli to output those formats. Here is an example:

wavedrom-cli -i test/src/step4.js | inkscape --file - --export-pdf step4.pdf

License

MIT LICENSE.

About

CLI for WaveDrom

https://wavedrom.com

License:MIT License


Languages

Language:JavaScript 85.7%Language:HTML 14.3%