Skip to main content

getVersion

Get the version of the library. Useful in a bug report, or to check which build a page actually loaded.

getVersion(): string;

This method is on the SoundHub class but not on SoundHubInterface.

Parameters​

This method takes no parameters.

Returns​

string: the version, such as "6.4.0".

Example​

import { SoundHub } from 'soundhub';

const soundHub = new SoundHub();

console.log(soundHub.getVersion()); // "6.4.0"

Good to know​

  • The version is also printed to the console when a hub is created, together with links to the demo and these docs. That banner appears whether or not debug mode is on.

See also​

  • getConfig: the configuration the hub is running with.
  • getLastError: the last error, also handy in a bug report.