{"name":"@clack/core","version":"1.1.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@1.1.0","maintainers":[{"name":"natemoo-re","email":"nate@natemoo.re"},{"name":"dreyfus92","email":"paulvi92@gmail.com"},{"name":"43081j","email":"43081james@gmail.com"},{"name":"amirsa12","email":"amirhosseinpr184@gmail.com"},{"name":"aslemammad","email":"zorofight94@gmail.com"}],"homepage":"https://github.com/bombshell-dev/clack/tree/main/packages/core#readme","bugs":{"url":"https://github.com/bombshell-dev/clack/issues"},"dist":{"shasum":"8f10d868cacf9424d96b1ce328e02bfd3167d77f","tarball":"http://registry-npm.ywwl.com/@clack/core/download/@clack/core-1.1.0.tgz","fileCount":7,"integrity":"sha512-SVcm4Dqm2ukn64/8Gub2wnlA5nS2iWJyCkdNHcvNHPIeBTGojpdJ+9cZKwLfmqy7irD4N5qLteSilJlE0WLAtA==","signatures":[{"sig":"MEUCIGmu7gmn8ElstYtheRbMV3pImO7E+fiKoq2FFRU786PqAiEAgkjb0f1fkrWy6I1qpIHU7Yl7GyD8UhGKSgFatFZUhlU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@clack%2fcore@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":135975,"size":38169,"noattachment":false,"key":"/@clack/core/-/@clack/core-1.1.0.tgz"},"main":"./dist/index.mjs","type":"module","_from":"file:clack-core-1.1.0.tgz","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"test":"vitest run","build":"unbuild"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7391edd9-081a-43b5-a2f9-e5db7f98c634"}},"_resolved":"/tmp/c17aa617bc0551cfa87c20b2582efcd0/clack-core-1.1.0.tgz","_integrity":"sha512-SVcm4Dqm2ukn64/8Gub2wnlA5nS2iWJyCkdNHcvNHPIeBTGojpdJ+9cZKwLfmqy7irD4N5qLteSilJlE0WLAtA==","repository":{"url":"git+https://github.com/bombshell-dev/clack.git","type":"git","directory":"packages/core"},"_npmVersion":"11.11.0","description":"Clack contains low-level primitives for implementing your own command-line applications.","directories":{},"_nodeVersion":"22.22.0","dependencies":{"sisteransi":"^1.0.5"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","fast-wrap-ansi":"^0.1.3"},"_npmOperationalInternal":{"tmp":"tmp/core_1.1.0_1772566746087_0.42477271866280986","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":1772566746242,"_cnpm_publish_time":1772566746242,"dist-tags":{"alpha":"1.0.0-alpha.8","latest":"1.6.0"}}