Skip to content

Instantly share code, notes, and snippets.

const path = require('path')
// index.js
let counter = 0;
const generateId = () => {/* */};
class StudentManagement {
constructor() {/**/}
add() {/**/}
@zt4ff
zt4ff / app.js
Created October 24, 2021 05:10
Move desktop mouse and keyboard using NodeJS
const yargs = require("yargs");
const robot = require("robotjs");
const { hideBin } = require("yargs/helpers");
let is_both;
let is_mouse;
let is_keyboard;
const arg = yargs(hideBin(process.argv))
.command("$0 [interval]", true, (yargs) => {