Example to print to thermal printer from JavaScript

This example will print a test ticket in the selected printer:

Try live example

Remember that the plugin must be running in the background. Select your printer and print an example ticket.
Important: if the list is empty, make sure the plugin is running in the background

You can see more examples in the official docs or try them online