{"name":"@putout/cli-choose","version":"4.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"show select to choose one item from list","homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-choose#readme","main":"lib/choose.js","exports":{".":"./lib/choose.js","./keypress":"./lib/keypress.js"},"release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"enquirer":"^2.4.1","try-to-catch":"^4.0.0"},"keywords":["putout","putout-plugin","plugin","gitignore"],"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^30.0.0","madrun":"^12.0.0","nodemon":"^3.0.1","putout":"*","supertape":"^12.0.0"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/cli-choose@4.0.0","gitHead":"629d00dcd8d2277765630bd78e17953691fa7bce","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.5.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-rY/7uO8uePTFrguvfcw15cblM6NZIq2+O61T4ToMisq0QqNxQnMZ2pat5fWAl9oGQCbj4xhmLc9is8X2+7NVNQ==","shasum":"02f8d8df3fc66f941cf9abe729bc310251d184ae","tarball":"http://registry-npm.ywwl.com/@putout/cli-choose/download/@putout/cli-choose-4.0.0.tgz","fileCount":6,"unpackedSize":4968,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAsArFIYNraOvoXRfL2E5hFpQqOoBLfW8Z+jAFNTdICUAiAdOlPHgRXQn1dMkI35HCCBo9MhvgJ1xhx4zwhMp48NsQ=="}],"size":2365,"noattachment":false,"key":"/@putout/cli-choose/-/@putout/cli-choose-4.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli-choose_4.0.0_1769624984976_0.5218260827387207"},"_hasShrinkwrap":false,"readme":"# @putout/cli-choose [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/cli-choose.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/cli-choose \"npm\"\n\nShow ui to choose one item from list.\n\n## Install\n\n```\nnpm i @putout/cli-choose\n```\n\n## Examples\n\n```js\nimport {choose} from '@putout/cli-choose';\n\nchoose('hello?', [\n    'one',\n    'two',\n    'three',\n    'four',\n]);\n\n// returns\n'one';\n```\n\nWhen you need to set focus use `autofocus`:\n\n```js\nimport {choose} from './lib/choose.js';\n\nconst choices = [\n    'one',\n    'two',\n    'three',\n    'four',\n];\n\nchoose('hello?', items, {\n    autofocus: 3,\n});\n\n// show ui with focus on item 'three'.\n```\n\n## License\n\nMIT\n","publish_time":1769624985103,"_cnpm_publish_time":1769624985103,"dist-tags":{"latest":"4.0.0"}}