- record
- stop
- clear
- input
const GlobalInputRecorder = require('global-input-recorder');
const fs = require('fs');
const inputRecorder = new GlobalInputRecorder();
console.log('Recording!');
inputRecorder.record();
setTimeout(stopRecording, 10000);
function stopRecording() {
inputRecorder.stop();
console.log('Recording stopped!');
const input = inputRecorder.input;
fs.writeFileSync('./temp/report.json', JSON.stringify(input));
}