$ npm install
$ npm start
# Watch mode
$ npm run dev
# Lint
$ npm run lint
$ npm run lint:watch
package-lock.json | |
node_modules/** | |
.editorconfig | |
.eslintrc.yaml | |
.prettierrc.json | |
data/** |
const { mouse, left, right, up, down } = require("@nut-tree/nut-js"); | |
(async () => { | |
// Simple Movement: https://nutjs.dev/tutorials/first_steps | |
await mouse.move(left(500)); | |
await mouse.move(up(500)); | |
await mouse.move(right(500)); | |
await mouse.move(down(500)); | |
})(); |
{ | |
"name": "nodejs-script", | |
"author": "mryhryki", | |
"private": true, | |
"license": "MIT", | |
"engines": { | |
"node": "18.x", | |
"npm": "9.x" | |
}, | |
"scripts": { | |
"start": "node index.js", | |
"dev": "nodemon --watch ./ --ext js index.js", | |
"lint": "mryhryki-lint", | |
"lint:fix": "mryhryki-lint-fix" | |
}, | |
"dependencies": { | |
"@mryhryki/lint": "^0.0.12", | |
"@nut-tree/nut-js": "^3.0.0" | |
}, | |
"nodemonConfig": { | |
"delay": 1000 | |
} | |
} |