New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

guacamole-dotool

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

guacamole-dotool

Guacamole CLI client and JS library for headless scripting (just like vncdotool, but over Guacamole)

  • 0.2.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

A command-line Guacamole client and TypeScript/JavaScript library for headless scripting. It’s exactly like vncdotool or xdotool, but over the Guacamole protocol.

Installation

On Alpine Linux

apk add guacamole-dotool

Using npm

npm install --global guacamole-dotool

Warning: The canvas package downloads pre-built native libraries (cairo, pango, libjpeg…) from npmjs.com by default. If you want to build it from source instead (highly recommended), use option --build-from-source. See node-canvas installation for details.

Usage

Command line

guacamole-dotool --url wss://example.org/guacamole -- \
  key Cmd+t pause 2 type 'echo "Hello, world!"' key Enter pause 0.5 capture screenshot.png

Run guacamole-dotool --help to learn more.

TypeScript / JavaScript

import { Client, setDomGlobals } from 'guacamole-dotool'

// Set canvas, jsdom and ws to the global context.
setDomGlobals()

// Connect to Guacamole via WebSocket.
const c = await Client.connect('wss://example.org/guacamole')

// Run commands...
await c.keysPress('Cmd', 't')
await c.pause(2)
await c.type('echo "Hello, world!"')
await c.keysPress('Enter')
await c.pause(0.5)
await c.captureScreenToFile('screenshot.png')

c.disconnect()

See src/client.ts to learn more.

License

This project is licensed under MIT License. For the full text of the license, see the LICENSE file.

Keywords

FAQs

Package last updated on 30 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc