An implementation of pyautogui to node.js
npm install jsautogui
const jsautogui = require("jsautogui");
jsautogui.ready().then(() => {
console.log("JAG is ready!");
});
autogui.screenshot("test.png").then(() => {
console.log("Saved the screenshot!");
});