Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/litebot/mod.ts>sleep

A Deno library for interacting with the mouse 🖱️ keyboard ⌨️ and screen 💻. Provides a simple API for creating kbm events, macros, & working with displays. Leverages FFI & C providing high performance while maintaining a simple TypeScript API
Latest
variable sleep
import { sleep } from "https://deno.land/x/litebot@v0.4.4/mod.ts";

Python like sleep function. blocks the thread's execution

type

(ms: number) => Promise<void>