Back to Explore

sindresorhus/restore-cursor

GitHub
1 watchersOpen source

Last release: 7/26/2024

Restores the CLI cursor on exit, intended to prevent a hidden cursor from remaining hidden if your process crashes. It is meant for interactive TTY sessions only, and does nothing when run in a non-TTY context.

Project status

  • Actively maintained, at least through 2024, with a recent GitHub push on 2024-07-26 and a dependency-only update in v5.1.0.
  • Apparent update cadence is slow and intermittent, with the last two version updates at 2024-07 and 2023-09, and earlier major updates in 2021.

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v5.1.0

    7/26/2024

    v5.1.0 is described only as a dependency update. The code diff shows packaging metadata changes (adding a types entry and declaring sideEffects: false), plus runtime and dev dependency bumps.

  • v5.0.0

    9/28/2023

    v5.0.0 updates restore-cursor to target Node.js 18+ and changes how the cursor restoration escape sequence is emitted based on TTY presence. The main behavioral change is that cursor restoration no longer attempts to write control codes when the relevant output stream is not a TTY.

    Breaking
  • v4.0.0

    8/23/2021

    v4.0.0 converts restore-cursor to a pure ESM package and raises the minimum supported Node.js versions. The codebase was updated across JavaScript, TypeScript declarations, tests, and documentation to use ESM default export syntax.

    Breaking
  • v3.1.0

    4/26/2019

    Release v3.1.0 primarily adds TypeScript support via a new declaration file. The code diff also updates build and CI configuration to run TypeScript definition tests and linting. No runtime behavior changes to the main JavaScript module are visible in this diff.

    Features
  • v3.0.0

    4/17/2019

    v3.0.0 is a breaking release that raises the minimum supported Node.js version. If you are running this package on an older Node runtime, you will need to upgrade before upgrading to v3.0.0.

    Breaking