@expove/clack__core
TypeScript icon, indicating that this package has built-in type declarations

0.3.3-upstream-90f8e3d-vendored-dc1c1f0 • Public • Published

Vendored Package

This package is vendored! The upstream (@clack/core) package may differ. This package was built from vendored/dc1c1f0; upstream commit 90f8e3d.

Pin the Version!

We can change how this is vendored at any time. It's highly recommended to pin this package to a specific version if you don't use the upstream package.

@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.valueWithCursor}`;
  },
});

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

Package Sidebar

Install

npm i @expove/clack__core

Weekly Downloads

1

Version

0.3.3-upstream-90f8e3d-vendored-dc1c1f0

License

MIT

Unpacked Size

271 kB

Total Files

10

Last publish

Collaborators

  • exponentialworkload