padarom / guacamole-common-js

:avocado: The JavaScript Guacamole client library modified for easy installation and usage via npm
http://guac-dev.org/
Apache License 2.0
41 stars 18 forks source link

Can each component be referenced separately? #9

Closed gao-xiangyang closed 3 years ago

gao-xiangyang commented 3 years ago
|____guacamole-common-js
| |____index.js
| |____modules
| | |____Client.js
| | |____VideoPlayer.js
| | |____OnScreenKeyboard.js
| | |____ .....
requre("guacamole-common-js")
padarom commented 3 years ago

require('guacamole-common-js') returns an object with all components available through their keys. So you can access them like so:

const Guacamole = require('guacamole-common-js')

Guacamole.VideoPlayer
Guacamole.OnScreenKeyboard