@meowcli/core
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@meowcli/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);
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    2

Package Sidebar

Install

npm i @meowcli/core

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

123 kB

Total Files

7

Last publish

Collaborators

  • apexdevs