{"name":"@clack/core","version":"0.4.2","keywords":["ask","clack","cli","command-line","command","input","interact","interface","menu","prompt","prompts","stdin","ui"],"author":{"url":"https://twitter.com/n_moore","name":"Nate Moore","email":"nate@natemoo.re"},"license":"MIT","_id":"@clack/core@0.4.2","maintainers":[{"name":"natemoo-re","email":"nate@natemoo.re"}],"homepage":"https://github.com/bombshell-dev/clack/tree/main/packages/core#readme","bugs":{"url":"https://github.com/bombshell-dev/clack/issues"},"dist":{"shasum":"8271fdd3d66642e98ff0f3ccf41bc36fda6f0222","tarball":"http://registry-npm.ywwl.com/@clack/core/download/@clack/core-0.4.2.tgz","fileCount":11,"integrity":"sha512-NYQfcEy8MWIxrT5Fj8nIVchfRFA26yYKJcvBS7WlUIlw2OmQOY9DhGGXMovyI5J5PpxrCPGkgUi207EBrjpBvg==","signatures":[{"sig":"MEUCIB956OLVvbPlk3C0wRcHiB0tAPJiMMUCPP4E3e9HVDAKAiEArFgx8XrEmdlmNivBebF4wqWhxLXrPE0nlQcdng76sts=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":296801,"size":74338,"noattachment":false,"key":"/@clack/core/-/@clack/core-0.4.2.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:clack-core-0.4.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"test":"vitest run","build":"unbuild"},"_npmUser":{"name":"natemoo-re","email":"nate@natemoo.re"},"_resolved":"/tmp/4bf0c25c981b9118641f5702c30b9177/clack-core-0.4.2.tgz","_integrity":"sha512-NYQfcEy8MWIxrT5Fj8nIVchfRFA26yYKJcvBS7WlUIlw2OmQOY9DhGGXMovyI5J5PpxrCPGkgUi207EBrjpBvg==","repository":{"url":"git+https://github.com/bombshell-dev/clack.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"Clack contains low-level primitives for implementing your own command-line applications.","directories":{},"_nodeVersion":"20.19.0","dependencies":{"picocolors":"^1.0.0","sisteransi":"^1.0.5"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.6.0","wrap-ansi":"^8.1.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.4.2_1744080838126_0.25718617890694584","host":"s3://npm-registry-packages-npm-production"},"readme":"# `@clack/core`\n\nClack contains low-level primitives for implementing your own command-line applications.\n\nCurrently, `TextPrompt`, `SelectPrompt`, and `ConfirmPrompt` are exposed as well as the base `Prompt` class.\n\nEach `Prompt` accepts a `render` function.\n\n```js\nimport { TextPrompt, isCancel } from '@clack/core';\n\nconst p = new TextPrompt({\n  render() {\n    return `What's your name?\\n${this.userInputWithCursor}`;\n  },\n});\n\nconst name = await p.prompt();\nif (isCancel(name)) {\n  process.exit(0);\n}\n```\n","publish_time":1744080838345,"_cnpm_publish_time":1744080838345,"dist-tags":{"alpha":"1.0.0-alpha.8","latest":"1.6.0"}}