A Node.js wrapper for the Enigo Rust library, providing a native interface for simulating input events like keyboard and mouse actions.
- Simulate mouse events (move, click, scroll).
- Simulate keyboard events (press, release, type).
- Node.js 10 or later
- Rust toolchain
Use npm to install the library:
yarn add @enfpdev/napi-rs-enigo
import {
moveMouseRel,
moveMouseAbs,
mouseClick,
mouseDown,
mouseUp,
mouseScroll
} from "napi-rs-enigo"
moveMouseRel(100, 100));
moveMouseAbs(100, 100));
mouseClick('rigtht'));
mouseDown('left'));
mouseUp('middle'));
mouseScroll(100, true));
Coffee fuels coding ☕️