0.5.0 • Published 6 months ago

@clack/core v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@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);
}
create-fuerza-appsabzlearnsabzlearn.ir@everything-registry/sub-chunk-175create-basement-app@dragonforgecode/create-spacedragon@akku_21/bunnai-groqcli-brnd-nextsveltelabtest-enes-appkit-cliwid-cliworkshopatcyberworkshopatcyberapriltempkitstart-frontendswift-commitsjfoxkarozuicall-clihyper-taskshypershiplocellearnjsatcyberkubb-gen-scribe-clikixtartmeluiz@vue-storefront/cli@workleap/create-project@ts-ghost/ghost-blog-buster@uiui/release-cli@typoconsult/extension@unkey/create-apiai-shell-cliatmos-weather-cli@posthog/wizardfragment-toolsgenerate-environmental-variables-examplegen-sdk-apiemotive-aienv-aienv-example-generatoreslint-aifastzxfizzle-cli@proofgeist/kit@2digits/log@prisma/cli-dev@bishopcodes/micro-agent@builder.io/ai-shell@builder.io/micro-agent@bushuai/brc@chhoumann/bunnai@chameleonmind/vue-migrate@ceramicnetwork/create-ceramic-app@clamjs/logger@clack/prompts@bernankez/prompt@beerose/semantic-search@ayingott/venti@babatools/create-baba-app@backyard-ui/codemod@barackouma/black-jack-game@brc-dd/lunaria-corecommagechatgpt-terminalcoin-forge-clicoloidcommitizen-clicli-video-utilsclack-terminalcreate-own-appcreate-own-test-appcreate-zihan-libcreate-neonized-t3-appcreatiumcreate-visactor-appcreate-worker-xcreate-ao-contractcreate-ao-dappcreate-anura-appcreate-arweave-appcreate-bivouac-appcreate-baba-appcreate-geo-nextcreate-course-appcreate-honc-appcreate-c3-appcreate-cardinal-appcreate-neon-t3create-neon-t3-appcreate-faith-appcreate-next-saas-appcreate-nucleus-appcreate-spacedragoncreate-pstack-appcreate-tauri-uicreate-t3-appcreate-t3cf-appcreate-pol-uicreate-studiocms
1.0.0-alpha.1

6 months ago

1.0.0-alpha.0

7 months ago

0.3.5

1 year ago

0.5.0

6 months ago

0.4.1

11 months ago

0.4.0

11 months ago

0.4.2

8 months ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago