{"name":"@clack/core","version":"0.4.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.4.0","maintainers":[{"name":"natemoo-re","email":"nate@natemoo.re"}],"homepage":"https://github.com/natemoo-re/clack/tree/main/packages/core#readme","bugs":{"url":"https://github.com/natemoo-re/clack/issues"},"dist":{"shasum":"4708ba868808b7316069568137413e9a1ba0c673","tarball":"http://registry-npm.ywwl.com/@clack/core/download/@clack/core-0.4.0.tgz","fileCount":11,"integrity":"sha512-YJCYBsyJfNDaTbvDUVSJ3SgSuPrcujarRgkJ5NLjexDZKvaOiVVJvAQYx8lIgG0qRT8ff0fPgqyBCVivanIZ+A==","signatures":[{"sig":"MEQCICSTH0qzw1A5yhF+ejfSdRl9/XFxQISrtr5nYiehHSrfAiAC3CWtVVIIAGjojGNXij/k0J7QntDQ+MW3xA4Q7IzBPQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":290962,"size":72436,"noattachment":false,"key":"/@clack/core/-/@clack/core-0.4.0.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:clack-core-0.4.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/3b11ae647bc3b392ccb01dec41698fa1/clack-core-0.4.0.tgz","_integrity":"sha512-YJCYBsyJfNDaTbvDUVSJ3SgSuPrcujarRgkJ5NLjexDZKvaOiVVJvAQYx8lIgG0qRT8ff0fPgqyBCVivanIZ+A==","repository":{"url":"git+https://github.com/natemoo-re/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.18.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.4.0_1734640092367_0.5156662310857365","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":1734640092572,"_cnpm_publish_time":1734640092572,"dist-tags":{"alpha":"1.0.0-alpha.8","latest":"1.6.0"}}