{"name":"@clack/core","version":"1.4.3","type":"module","main":"./dist/index.mjs","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./package.json":"./package.json"},"types":"./dist/index.d.mts","repository":{"type":"git","url":"git+https://github.com/bombshell-dev/clack.git","directory":"packages/core"},"bugs":{"url":"https://github.com/bombshell-dev/clack/issues"},"homepage":"https://github.com/bombshell-dev/clack/tree/main/packages/core#readme","keywords":["ask","clack","cli","command-line","command","input","interact","interface","menu","prompt","prompts","stdin","ui"],"author":{"name":"Nate Moore","email":"nate@natemoo.re","url":"https://twitter.com/n_moore"},"license":"MIT","engines":{"node":">= 20.12.0"},"dependencies":{"fast-wrap-ansi":"^0.2.0","sisteransi":"^1.0.5"},"devDependencies":{"arktype":"^2.2.0","vitest":"^3.2.4"},"scripts":{"build":"unbuild","test":"vitest run"},"_id":"@clack/core@1.4.3","description":"Clack contains low-level primitives for implementing your own command-line applications.","_integrity":"sha512-/kr3UWNtdJfxZtPgDqUOmG2pvwlmcLGheex5yiZKdwbzZJxhV+HMNR9QNmyY5cGwTNV6LrR7Jtp+KjhUAP1qBQ==","_resolved":"/tmp/326fe2e4431aa06d16d2ef3c7ced3c94/clack-core-1.4.3.tgz","_from":"file:clack-core-1.4.3.tgz","_nodeVersion":"22.23.1","_npmVersion":"11.10.1","dist":{"integrity":"sha512-/kr3UWNtdJfxZtPgDqUOmG2pvwlmcLGheex5yiZKdwbzZJxhV+HMNR9QNmyY5cGwTNV6LrR7Jtp+KjhUAP1qBQ==","shasum":"1e831974f811d733707ec650e58f690d7d74c5fa","tarball":"http://registry-npm.ywwl.com/@clack/core/download/@clack/core-1.4.3.tgz","fileCount":6,"unpackedSize":65914,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@clack%2fcore@1.4.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDe8mPkHy6CiwnWPs3Ngl26bcql/QK58yG6ocxtUGeYdAiEAjteorywVRdcNrW+mv8vR822qZ9lRHsp7uaRVWj/usIs="}],"size":19283,"noattachment":false,"key":"/@clack/core/-/@clack/core-1.4.3.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7391edd9-081a-43b5-a2f9-e5db7f98c634"}},"directories":{},"maintainers":[{"name":"cowboyd","email":"cowboyd@frontside.com"},{"name":"jbolda","email":"me@jacobbolda.com"},{"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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_1.4.3_1783119557073_0.9929416828332771"},"_hasShrinkwrap":false,"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":1783119557216,"_cnpm_publish_time":1783119557216,"dist-tags":{"alpha":"1.0.0-alpha.8","latest":"1.6.0"}}