New:Socket for Asana Is Now Available.Learn more →
Get Started

@clack/core

Package Overview
Dependencies
Maintainers
7
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clack/core

Clack contains low-level primitives for implementing your own command-line applications.

latest
Source
npmnpm
Version
1.4.3
Version published
Weekly downloads
16M
-25.31%
Maintainers
7
Weekly downloads
 
Created
Source

@clack/core

Clack contains low-level primitives for implementing your own command-line applications.

Currently, TextPrompt, SelectPrompt, and ConfirmPrompt are exposed as well as the base Prompt class.

Each Prompt accepts a render function.

import { TextPrompt, isCancel } from '@clack/core';

const p = new TextPrompt({
  render() {
    return `What's your name?\n${this.userInputWithCursor}`;
  },
});

const name = await p.prompt();
if (isCancel(name)) {
  process.exit(0);
}

Keywords

ask

FAQs

Package last updated on 03 Jul 2026

Related posts