Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
lepikevents
Advanced tools
An event based, Global Keyboard and Mouse listener.
Lepik Events is only part from LepikJS. Definitely try it out!
Visit LepikJS's website.
npm install lepikevents
ㅤ
New Feature v1.7.0+
LepikEvents now includes a method for capturing mouseUp and mouseDown events!
JS Array is passed to callback function. It contain these values: x, y ㅤ ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤLepikEventsv1.7.0
// Require lepikEvents
const lepikEvents = require('lepikevents');
lepikEvents.events.on('keyPress', (data) => {
// Returns key pressed as String
console.log(data); // e||esc||space||backspace ...
});
lepikEvents.events.on('keyRelease', (data) => {
// Returns key released as String
console.log(data); // e||esc||space||backspace ...
});
lepikEvents.events.on('mouseClick', (data) => {
// Returns array containing mouse position x, y and button clicked
console.log(data); // [361, 235, *1]
// *1 for left, 2 for right, 3 for middle
});
lepikEvents.events.on('mouseDoubleClick', (data) => {
// Returns array containing mouse position x, y and button double-clicked
console.log(data); // [361, 235, *1]
// *1 for left, 2 for right, 3 for middle
});
lepikEvents.events.on('mouseMove', (data) => {
// Returns array containing mouse x, y and time (seconds)
console.log(data); // [20, -35, 1663787912.698]
});
lepikEvents.events.on('mouseUp', (data) => {
// Returns array containing mouse x, y
console.log(data); // [20, 35]
});
lepikEvents.events.on('mouseDown', (data) => {
// Returns array containing mouse x, y
console.log(data); // [20, 75]
});
Curently there are 5 events in total, mouseMove, mouseClick, mouseDoubleClick, keyPress and keyRelease.
Lepik Events uses Python keyboard and Python mouse which runs on Python.
If your are on Windows, then you don't even have to have it installed, cause thanks to Pyinstaller, the code is compiled into executable.
If you are not using windows, you need to have atleast Python3 installed. It's better to have atleast node13 but not required.
The code is licensed under the MIT license (http://opensource.org/licenses/MIT). See LICENSE file.
FAQs
Global mouse and keyboard events Listener
The npm package lepikevents receives a total of 4 weekly downloads. As such, lepikevents popularity was classified as not popular.
We found that lepikevents demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.