wavedrom

(★ 3,471)

:ocean: Digital timing diagram rendering engine

File Explorer

  • .gitignore
  • eslint.config.js
  • LICENSE
  • package.json
  • README.md

# Installation Guide

node
Prerequisites

Setup Steps

npm install -g wavedrom

Install WaveDrom package globally.

wavedrom --input source.json5 --indent 2 > output.svg

Parse JSON5 source file and generate an SVG file.

Key Commands

npx wavedrom --input source.json5 > output.svg

Temporarily run the package without global installation to generate SVG.

npm install -g wavedrom

Install WaveDrom globally to use it as a CLI tool.

You can use @resvg/resvg-js-cli package together for PNG export.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

npm install

View Details ▼

Install Node packages.

npm {{[i|install]}}

Install dependencies listed in `package.json`:

npm {{[i|install]}} {{package_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}

Download the latest version of a package and add it to the list of dev dependencies in `package.json`:

🔍

npx

View Details ▼

This command is an alias of `npm exec`.

tldr npm exec

View documentation for the original command:

🔍

tar

View Details ▼

Archiving utility.
Often combined with a compression method, such as `gzip` or `bzip2`.

tar cf {{path/to/target.tar}} {{path/to/file1 path/to/file2 ...}}

[c]reate an archive and write it to a [f]ile:

tar czf {{path/to/target.tar.gz}} {{path/to/file1 path/to/file2 ...}}

[c]reate a g[z]ipped archive and write it to a [f]ile:

tar czf {{path/to/target.tar.gz}} {{[-C|--directory]}} {{path/to/directory}} .

[c]reate a g[z]ipped (compressed) archive from a directory using relative paths:

🔍

script

View Details ▼

Record all terminal output to a typescript file.

script

Record a new session to a file named `typescript` in the current directory:

exit

Stop recording:

script {{path/to/session.out}}

Record a new session to a custom filepath:

// repository documentation