wavedrom-cli

WaveDrom command-line interface (CLI)

Usage no npm install needed!

<script type="module">
  import wavedromCli from 'https://cdn.skypack.dev/wavedrom-cli';
</script>

README

NPM version Linux MacOS Windows

wavedrom-cli

WaveDrom command-line interface

Usage

Export SVG

npx wavedrom-cli -i mywave.json5 -s mywave.svg

Export PNG

npx wavedrom-cli -i mywave.json5 -p mywave.png

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:

npx wavedrom-cli -i mywave.json5 | inkscape --file - --export-pdf mywave.pdf

Options

  --input, -i  path to the source                                     [required]
  --svg, -s    path to the generated SVG
  --png, -p    path to the generated PNG
  --version    Show version number                                     [boolean]
  --help       Show help                                               [boolean]

License

MIT LICENSE.