Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

windmouse

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

windmouse

A JavaScript library for generating human-like mouse movement data points.

  • 1.0.4
  • npm
  • Socket score

Version published
Weekly downloads
30K
decreased by-6.12%
Maintainers
1
Weekly downloads
 
Created
Source

WindMouse

WindMouse is a lightweight, and highly configurable, library for generating human-like mouse movement. The data points are then returned in a x,y point array for further usage.

Installation

npm install windmouse

Usage

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

WindMouse Visualizer

https://github.com/arevi/mouse-data-visualizer

Contributng

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

https://opensource.org/licenses/MIT

Credits

The original WindMouse library was created by https://github.com/BenLand100 for Java. This is a port of said library enabling for usage with JavaScript/TypeScript.

Keywords

FAQs

Package last updated on 20 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc