
Security News
TC39 Advances Temporal to Stage 4 Alongside Several ECMAScript Proposals
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.
@inquirer/ansi
Advanced tools
A lightweight package providing ANSI escape sequences for terminal cursor manipulation and screen clearing.
A lightweight package providing ANSI escape sequences for terminal cursor manipulation and screen clearing.
| npm | yarn |
|---|---|
|
|
import {
cursorUp,
cursorDown,
cursorTo,
cursorLeft,
cursorHide,
cursorShow,
eraseLines,
} from '@inquirer/ansi';
// Move cursor up 3 lines
process.stdout.write(cursorUp(3));
// Move cursor to specific position (x: 10, y: 5)
process.stdout.write(cursorTo(10, 5));
// Hide/show cursor
process.stdout.write(cursorHide);
process.stdout.write(cursorShow);
// Clear 5 lines
process.stdout.write(eraseLines(5));
Or when used inside an inquirer prompt:
import { cursorHide } from '@inquirer/ansi';
import { createPrompt } from '@inquirer/core';
export default createPrompt((config, done: (value: void) => void) => {
return `Choose an option${cursorHide}`;
});
cursorUp(count?: number) - Move cursor up by count lines (default: 1)cursorDown(count?: number) - Move cursor down by count lines (default: 1)cursorTo(x: number, y?: number) - Move cursor to position (x, y). If y is omitted, only moves horizontallycursorLeft - Move cursor to beginning of linecursorHide - Hide the cursorcursorShow - Show the cursoreraseLines(count: number) - Clear count lines and position cursor at the beginning of the first cleared lineCopyright (c) 2025 Simon Boudrias (twitter: @vaxilart)
Licensed under the MIT license.
FAQs
A lightweight package providing ANSI escape sequences for terminal cursor manipulation and screen clearing.
The npm package @inquirer/ansi receives a total of 11,329,947 weekly downloads. As such, @inquirer/ansi popularity was classified as popular.
We found that @inquirer/ansi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.

Research
/Security News
Since January 31, 2026, we identified at least 72 additional malicious Open VSX extensions, including transitive GlassWorm loader extensions targeting developers.

Research
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.