@accesslint/voiceover
Version:
macOS VoiceOver Typescript interface and CLI
26 lines (19 loc) • 391 B
JavaScript
const { VoiceOver } = require('../lib/VoiceOver.js');
const voiceOver = new VoiceOver({ log: true });
async function exit(code = 0) {
await voiceOver.quit();
process.exit(0);
}
(async () => {
try {
await voiceOver.launch();
} catch (err) {
console.error(err);
exit(1);
}
})();
process.stdin.resume();
process.on('SIGINT', () => {
exit();
})