{"name":"@clack/core","version":"0.3.4","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.3.4","maintainers":[{"name":"natemoo-re","email":"nate@natemoo.re"}],"homepage":"https://github.com/natemoo-re/clack/tree/main/packages/core#readme","bugs":{"url":"https://github.com/natemoo-re/clack/issues"},"dist":{"shasum":"375e82fc8fe46650b37cab2f2ea8752c6b7f0450","tarball":"http://registry-npm.ywwl.com/@clack/core/download/@clack/core-0.3.4.tgz","fileCount":11,"integrity":"sha512-H4hxZDXgHtWTwV3RAVenqcC4VbJZNegbBjlPvzOzCouXtS2y3sDvlO3IsbrPNWuLWPPlYVYPghQdSF64683Ldw==","signatures":[{"sig":"MEUCIQC62t/+9sNXLF/fFXQb1JrvL1yNwBFEmE14nutYJkWLSgIgDb/iNPC/B2LjEJ5jELf1Wd1v9+2kgCGGZmr8XxjJftk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":308371,"size":75434,"noattachment":false,"key":"/@clack/core/-/@clack/core-0.3.4.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:clack-core-0.3.4.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":{"build":"unbuild"},"_npmUser":{"name":"natemoo-re","email":"nate@natemoo.re"},"_resolved":"/tmp/85d3b6dc9e12c68aeefb0255eda32d11/clack-core-0.3.4.tgz","_integrity":"sha512-H4hxZDXgHtWTwV3RAVenqcC4VbJZNegbBjlPvzOzCouXtS2y3sDvlO3IsbrPNWuLWPPlYVYPghQdSF64683Ldw==","repository":{"url":"git+https://github.com/natemoo-re/clack.git","type":"git","directory":"packages/core"},"_npmVersion":"10.2.4","description":"Clack contains low-level primitives for implementing your own command-line applications.","directories":{},"_nodeVersion":"18.19.1","dependencies":{"picocolors":"^1.0.0","sisteransi":"^1.0.5"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.6.12","devDependencies":{"wrap-ansi":"^8.1.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.4_1708532817642_0.1681727595214142","host":"s3://npm-registry-packages"},"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":1708532817864,"_cnpm_publish_time":1708532817864,"dist-tags":{"alpha":"1.0.0-alpha.8","latest":"1.6.0"}}