
Threat Research
/Security News
Searchjacked: Hidden Browser Extensions Hijack Searches for 13 Million Users
319 browser extensions installed by 13.4 million users hijack searches, capture queries, and collect referral payments from Yahoo and Bing.
@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.
| yarn | pnpm |
|---|---|
|
|
| bun | deno |
|
|
| npm | |
|
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.
Provides a broad collection of ANSI escape sequences for terminal operations, including cursor control and screen clearing. It overlaps closely in purpose, while @inquirer/ansi offers a focused API used by Inquirer.
Styles terminal text with colors and formatting such as bold or underline. It is more focused on styling text than cursor movement or erasing terminal content.
Provides simple utilities to hide and show the terminal cursor. It covers a narrower use case than @inquirer/ansi, which also supports other terminal controls.
Removes ANSI escape sequences from strings. It complements rather than replaces @inquirer/ansi, which is used to create terminal control sequences.
FAQs
A lightweight package providing ANSI escape sequences for terminal cursor manipulation and screen clearing.
The npm package @inquirer/ansi receives a total of 60,901,727 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.

Threat Research
/Security News
319 browser extensions installed by 13.4 million users hijack searches, capture queries, and collect referral payments from Yahoo and Bing.

Threat Research
Malicious Firefox extensions mimic Phantom, Jupiter, and Bitget wallets to steal recovery phrases and private keys, with one fetching its payload remotely.

Product
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.