{"name":"@clack/core","version":"0.5.0","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.5.0","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":"970df024a927d6af90111667a0384e233b5ffa1a","tarball":"http://registry-npm.ywwl.com/@clack/core/download/@clack/core-0.5.0.tgz","fileCount":11,"integrity":"sha512-p3y0FIOwaYRUPRcMO7+dlmLh8PSRcrjuTndsiA0WAFbWES0mLZlrjVoBRZ9DzkPFJZG6KGkJmoEAY0ZcVWTkow==","signatures":[{"sig":"MEQCIEhuZjl56oehtd/K/GtwaVFD2ghmgAEJd9arlpJxzex+AiBACYHwRo7H8oXSRyJDywkErsICv3VUuSugVxYWZ5Rsig==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":296166,"size":74352,"noattachment":false,"key":"/@clack/core/-/@clack/core-0.5.0.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:clack-core-0.5.0.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/2365a981f43ade8d80f7637889cd934c/clack-core-0.5.0.tgz","_integrity":"sha512-p3y0FIOwaYRUPRcMO7+dlmLh8PSRcrjuTndsiA0WAFbWES0mLZlrjVoBRZ9DzkPFJZG6KGkJmoEAY0ZcVWTkow==","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.1","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.5.0_1747924516502_0.1082979853476489","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":1747924516716,"_cnpm_publish_time":1747924516716,"dist-tags":{"alpha":"1.0.0-alpha.8","latest":"1.6.0"}}