Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
A npm package that lets you automate your windows desktop.
npm i js-macro
import { cursor } from "js-macro";
cursor.position();
// { x: 679, y: 0 }
cursor.move(0, 0);
// cursor is now at the very left top of the screen
cursor.leftClick();
import { Worker, isMainThread } from "node:worker_threads";
import { execSync } from "node:child_process";
import { window, keyboard } from "js-macro";
if (!isMainThread) {
execSync("notepad.exe");
} else {
// we don't want for execSync to wait for notepad to exit,
// so we should use a worker instead
void new Worker(__filename);
// wait for notepad to start
setTimeout(() => {
let notepad = window.find("notepad.exe");
if (!notepad.length) {
return console.error("error: cannot find notepad :(");
}
// window.find returns an array - use the first element
notepad[0].focus();
keyboard.type("Hello, World!");
}, 1000);
}
import { clipboard } from "js-macro";
clipboard.copy("Hello, World!");
clipboard.paste();
// returns "Hello, World!"
The buffers will ALWAYS be in a PNG format.
import { window } from "js-macro";
const desktop = window.desktop();
desktop.screenshot(0, 0, "file.png").then(() => console.log("screenshotted!"));
desktop.screenshot(0, 0, 500, 500).then(buf => /* ... */);
git clone https://github.com/vierofernando/js-macro.git
cd js-macro
npm install --save-dev --ignore-scripts
npm run install
FAQs
[npm-image]: https://img.shields.io/npm/v/js-macro.svg [npm-url]: https://npmjs.org/package/js-macro [downloads-image]: https://img.shields.io/npm/dm/js-macro.svg [downloads-url]: https://npmjs.org/package/js-macro
The npm package js-macro receives a total of 0 weekly downloads. As such, js-macro popularity was classified as not popular.
We found that js-macro 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
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.