Command Line Tools
(These cli tools were formally part of the serialport
package and have now been moved to their own packages for ease of use.)
All cli tools can be run via npx
or installed globally.
For Example:
#
SerialPort ListThe package @serialport/list
will install the serialport-list
cli tool which lists all available serial ports in different formats.
#
SerialPort ReplThe package @serialport/repl
will install the serialport-repl
cli tool which provides a nodejs repl for working with serialport. This is valuable when debugging.
You can make use of the serialport-repl
command with;
It will load a serialport object with debugging turned on.
#
SerialPort TerminalThe package @serialport/terminal
will install the serialport-terminal
cli tool which provides a basic terminal interface for communicating over a serial port. ctrl+c
will exit.