export const detectKeyboard = () => { process.openStdin().on('keypress', function (_, key) { if (key && key.name === 'c' && key.ctrl) { deleteData() process.exit() } }) }