A JavaScript library for generating human-like mouse movement data points.
npm install windmouse
`
$3
`
const WindMouse = require("windmouse");
// Initialize WindMouse class
const windMouse = new WindMouse(Math.floor(Math.random() * 10));
// MouseSettings
let settings = {
startX: Math.ceil(Math.random() * 1920),
startY: Math.ceil(Math.random() * 1080),
endX: Math.ceil(Math.random() * 1920),
endY: Math.ceil(Math.random() * 1080),
gravity: Math.ceil(Math.random() * 10),
wind: Math.ceil(Math.random() * 10),
minWait: 2,
maxWait: Math.ceil(Math.random() * 5),
maxStep: Math.ceil(Math.random() * 3),
targetArea: Math.ceil(Math.random() * 10),
};
// Print points
async function logPoints() {
let points = await windMouse.GeneratePoints(settings);
console.log(points);
}
logPoints();
``