Last 12 weeks · 0 commits
4 of 6 standards met
This avoids all the lines getting printed on GitHub Actions, which does support colors, but does not support ANSI cursor control codes. If the terminal is not a tty, then there's no cursor to show or hide. Also, prevents printing the control code to stderr if stdout is a terminal and stderr isn't, and vice versa, for the same reason.
Repository: sindresorhus/restore-cursor. Description: Gracefully restore the CLI cursor on exit Stars: 41, Forks: 8. Primary language: JavaScript. Languages: JavaScript (97.6%), TypeScript (2.4%). License: MIT. Latest release: v5.1.0 (1y ago). Open PRs: 0, open issues: 0. Last activity: 1y ago. Community health: 85%. Top contributors: sindresorhus, BendingBender, michaelmior, Richienb, wooorm, isaacs.