Socket
Socket
Sign inDemoInstall

kepmon

Package Overview
Dependencies
4
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    kepmon

A Napi library wich provides a control over the pointer


Version published
Maintainers
1
Created

Readme

Source

Kepmon

Kepmon is a napi module providing pointer access and control.

In the earliest version only the Windows platfrom is currently supported!

Getting Started

Installation

npm i kepmon

Usage

import kepmon from ("kepmon")

const position = kepmon.getPointerPosition()
const boundary = kepmon.getPointerBoundary()
const newXPos = boundary.xLimit < position.x + 50 ? 0 : position.x + 50  
kepmon.setPointerPosition(newXPos, position.y)

For more information check the keepMeOnScript.ts.

Extending the library

First of all you've to install node-gyp.

node-gyp is a tool for building native Addon modules for Node.js, using the same infrastructure as Node itself. With node-gyp, you can compile your C/C++ code into a binary that can be loaded by Node.js and used as if it were any other native module.

Prerequisites

Before you can use node-gyp, you need to make sure you have the following installed:

  • Node.js and npm
  • Python (version 2.x)
  • Visual Studio Build Tools (for Windows only) or Xcode (for MacOS only)
  • The Windows SDK (for Windows only)
  • Installing node-gyp

You can install node-gyp globally with the following command:

npm install -g node-gyp

Once you have node-gyp installed, you can generate the necessary code with the code below

node-gyp configure node-gyp build

and than

node-gyp rebuild

For further instruction on how to use node-gyp and napi properly you can follow the (documentation)[https://nodejs.org/api/n-api.html]

Feel free to make any suggestions or creating pull requests in order to provide a multi-platform support or further extensions.

License

See the LICENSE file for licensing information.

Keywords

FAQs

Last updated on 06 Feb 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc