0.5.0 • Published 5 months ago

@clack/core v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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@clamjs/logger@clack/prompts@ayingott/venti@2digits/log@akku_21/ai-commmit-message-generator@cotera/cli@haxtheweb/create@hazycora/promptssame-thing@mrbakieness/create-firefly-appcreate-mesalvo-react@arsams/xdxsolidui-noahcode-clityres-createtsx-to-jsx-clitest-appkit-cliterminal-warptiny-dotenvx-hubwasmup@backyard-ui/codemod@babatools/create-baba-app@beerose/semantic-search@barackouma/black-jack-game@bishopcodes/micro-agent@brc-dd/lunaria-core@builder.io/ai-shell@builder.io/micro-agent@bushuai/brc@chameleonmind/vue-migrate@chhoumann/bunnai@ceramicnetwork/create-ceramic-app@bernankez/promptwebpackizezesky-cli@kyllan/cs-acronym-jeopardy@kuss/adc@kosori/cli@khulnasoft/ai-shell@mist3rbru/my-cli@khulnasoft/commitmate@rdlabo/ionic-angular-collect-icons@proofgeist/kit@pawaox4th/commit-cli@sentry/wizard@ronintech/shiprn-installer@ronintech/tnt-installermthdctr-testnafilas-cliorbit-upovct-cliopenai-shnuxt-edgedb-modulenwui-clipawaox4th-commit-clireact-native-ci-clisaas-forwardsetup-cineonized-create-t3-apppomodevshadcn-svelteshipsaasshopping-bag-clireact-scangit-account-switch-sshgpt-helper-node-jscommage
1.0.0-alpha.1

5 months ago

1.0.0-alpha.0

5 months ago

0.3.5

11 months ago

0.5.0

5 months ago

0.4.1

9 months ago

0.4.0

10 months ago

0.4.2

6 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