{"_id":"@clack/core@1.5.1","bugs":{"url":"https://github.com/bombshell-dev/clack/issues"},"dist":{"shasum":"2a071e7f47c2875814da8069ebb8100ac042d7aa","tarball":"http://registry-npm.ywwl.com/@clack/core/download/@clack/core-1.5.1.tgz","fileCount":5,"integrity":"sha512-iHTrHA8MtVuLl2TfZySmcKv1qO2PoyC9Z7pfSDozEuV5vtY3/wcOPKJXlqJ5Oq2Cx5DDGQGAMVx6HZfRRoVEbQ==","signatures":[{"sig":"MEUCIQDE6GsYyj6pBMl9hiV7wuYRWcOKgAKzrPWwJgio5JFJdwIgPI6RGrEf9KrncnPX8BBlRHYJlWsXYLnLcfkFOoXeoLg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAsCIK2lu5EaXQ8ENwCEFNDBKEv19IsGKdmh7yF1CDq9AiEA6htnkbN1aPXWYN+j/LPS5zpiyJG/51T1BL0LwxGwIJk="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@clack%2fcore@1.5.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":55634,"size":15034,"noattachment":false,"key":"/@clack/core/-/@clack/core-1.5.1.tgz"},"main":"./dist/index.mjs","name":"@clack/core","type":"module","_from":"file:clack-core-1.5.1.tgz","types":"./dist/index.d.mts","author":{"url":"https://twitter.com/n_moore","name":"Nate Moore","email":"nate@natemoo.re"},"module":"./dist/index.mjs","engines":{"node":">= 20.12.0"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./package.json":"./package.json"},"license":"MIT","scripts":{"test":"vitest run","build":"unbuild"},"version":"1.5.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7391edd9-081a-43b5-a2f9-e5db7f98c634"}},"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"],"_resolved":"/tmp/b29ef178450b47311040e1048d3cd788/clack-core-1.5.1.tgz","_integrity":"sha512-iHTrHA8MtVuLl2TfZySmcKv1qO2PoyC9Z7pfSDozEuV5vtY3/wcOPKJXlqJ5Oq2Cx5DDGQGAMVx6HZfRRoVEbQ==","repository":{"url":"git+https://github.com/bombshell-dev/clack.git","type":"git","directory":"packages/core"},"_npmVersion":"11.10.1","description":"Clack contains low-level primitives for implementing your own command-line applications.","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"}],"_nodeVersion":"22.23.2","dependencies":{"sisteransi":"^1.0.5","fast-wrap-ansi":"^0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","arktype":"^2.2.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_1.5.1_1789318866112_0.27368532363280895"},"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":1789318866192,"_cnpm_publish_time":1789318866192,"dist-tags":{"alpha":"1.0.0-alpha.8","latest":"1.6.0"}}