console.log('WAT version is ' + $wat.version.str);
<readonly> plugins :wat.Plugins
Gets the plugin object that can be used to query information about the available plugins
<readonly> version :wat.Version
Gets the version of WAT
Loads a plugin
Name Type Description
The name of the plugin to load.
- List of objects created by the plugin that are used to interact with the plugin. The objects returned are defined by the plugin.
// load a plugin for the hardware on the device // the hw plugins only return a single object var hw = $wat.load('hw'); // if the plugin failed to load, this will cause an exception since hw would be undefined console.log('Running on HW of type ' + hw.type);