{"name":"@clack/core","version":"1.0.0-alpha.7","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.0.0-alpha.7","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":"02330023b6519985e371d77d1fca13abe5b8aade","tarball":"http://registry-npm.ywwl.com/@clack/core/download/@clack/core-1.0.0-alpha.7.tgz","fileCount":7,"integrity":"sha512-3vdh6Ar09D14rVxJZIm3VQJkU+ZOKKT5I5cC0cOVazy70CNyYYjiwRj9unwalhESndgxx6bGc/m6Hhs4EKF5XQ==","signatures":[{"sig":"MEUCIBm/kqhihbgTqpTBRQe1zzhpPddGGsKCIaJggGKm8ycIAiEA06g48YNDUfbEixO3tqfO6c4eoBZZ1Y2dnl1LibkviJw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@clack%2fcore@1.0.0-alpha.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":134577,"size":37593,"noattachment":false,"key":"/@clack/core/-/@clack/core-1.0.0-alpha.7.tgz"},"main":"./dist/index.mjs","type":"module","_from":"file:clack-core-1.0.0-alpha.7.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/745afaf642da9b69422160622bca8809/clack-core-1.0.0-alpha.7.tgz","_integrity":"sha512-3vdh6Ar09D14rVxJZIm3VQJkU+ZOKKT5I5cC0cOVazy70CNyYYjiwRj9unwalhESndgxx6bGc/m6Hhs4EKF5XQ==","repository":{"url":"git+https://github.com/bombshell-dev/clack.git","type":"git","directory":"packages/core"},"_npmVersion":"11.6.3","description":"Clack contains low-level primitives for implementing your own command-line applications.","directories":{},"_nodeVersion":"22.21.1","dependencies":{"picocolors":"^1.0.0","sisteransi":"^1.0.5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vitest":"^3.2.4","fast-wrap-ansi":"^0.1.3"},"_npmOperationalInternal":{"tmp":"tmp/core_1.0.0-alpha.7_1763998261548_0.8648321719836689","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":1763998261767,"_cnpm_publish_time":1763998261767,"dist-tags":{"alpha":"1.0.0-alpha.8","latest":"1.6.0"}}