bunbot
Desktop automation for the Bun runtime. Currently works on Mac.
Requirements
Bunbot uses RobotGo via bun:ffi
. Please see RobotGo's requirements here.
Usage
bun add bunbot
Mouse
import Bunbot from 'bunbot'
const bb = new Bunbot()
bb.click()
const mousePosition = bb.getMousePosition()
bb.moveMouse(200, 400)
bb.moveMouseSmooth(200, 400)
bb.scrollMouse(100, 200)
Keyboard
import Bunbot from 'bunbot'
const bb = new Bunbot()
bb.type('Hello world!')
bb.tap('i', 'alt', 'command')
Screen
import Bunbot from 'bunbot'
const bb = new Bunbot()
const screenSize = bb.getScreenSize()
const scaleSize = bb.getScaleSize()
License
MIT