0.0.6 • Published 9 months ago

bunbot v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

bunbot

Desktop automation for the Bun runtime. Currently works on Mac.

npm (tag) NPM

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()

// Click
bb.click()
// Get mouse position coordinates
const mousePosition = bb.getMousePosition()
// Move mouse
bb.moveMouse(200, 400)
// Move mouse smoothly
bb.moveMouseSmooth(200, 400)
// Scroll mouse
bb.scrollMouse(100, 200)

Keyboard

import Bunbot from 'bunbot'

const bb = new Bunbot()

// Type a string
bb.type('Hello world!')
// Tap a key
bb.tap('i', 'alt', 'command')

Screen

import Bunbot from 'bunbot'

const bb = new Bunbot()

// Get screen size
const screenSize = bb.getScreenSize()
// Get scale size
const scaleSize = bb.getScaleSize()

License

MIT

0.0.5

9 months ago

0.0.6

9 months ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago