Gracefully restore the CLI cursor on exit
Prevent the cursor you've hidden interactively from remaining hidden if the process crashes.
$ npm install --save restore-cursor
const restoreCursor = require('restore-cursor');
restoreCursor();
MIT © Sindre Sorhus