0.1.1 • Published 9 months ago
guacamole-api v0.1.1
guacamole-api
This is a simple package that allows easier access to Apache Guacamole and its rest api.
Inspired heavily from the python guacamole-api-wrapper, but in typescript.
Also referencing this Unofficial Documentation.
:warning: Not heavily tested.
Install
npm i guacamole-api
Basic Usage
import Guacamole from 'guacamole-api';
// Authenticates with user/pass and keeps a token for subsequent calls
const session = await Guacamole.session({
host: 'http://10.0.1.100:8080/guacamole',
datasource: 'mysql',
username: 'guacadmin',
password: 'guacadmin',
});
// users is typed!
const users = await session.list_users();