{"name":"@putout/cli-choose","version":"3.0.0","keywords":["putout","putout-plugin","plugin","gitignore"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/cli-choose@3.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-choose#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"643c4ccb24cce3a6abc255e982f43694c9103f95","tarball":"http://registry-npm.ywwl.com/@putout/cli-choose/download/@putout/cli-choose-3.0.0.tgz","fileCount":6,"integrity":"sha512-Zu2MLkcs8t3AW4U1/sKeTAfYVLM7BRjwLB9AiPIKB1Mu3W3Vw1AUAduCRgAggn1PQHG74QP77TUJMDS8qZd/zQ==","signatures":[{"sig":"MEUCIQD3HQbeGfTf8Crq09lByQJgkPnWT1DRaTgUjEREOr1uKAIgSpj/KNrGsZUWxf2LjqYyw4rc6XGlIC2OO3fyrrYQAOQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4754,"size":2308,"noattachment":false,"key":"/@putout/cli-choose/-/@putout/cli-choose-3.0.0.tgz"},"main":"lib/choose.js","type":"module","engines":{"node":">=20"},"gitHead":"aabf96675394d25fd364509df7680f36d4ac17ba","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"show select to choose one item from list","directories":{},"_nodeVersion":"25.2.1","dependencies":{"enquirer":"^2.4.1","try-to-catch":"^3.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"v10.0.0-alpha.0","madrun":"^11.0.0","putout":"*","nodemon":"^3.0.1","supertape":"^11.0.3","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^28.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cli-choose_3.0.0_1764020744370_0.16359062093305643","host":"s3://npm-registry-packages-npm-production"},"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":1764020744548,"_cnpm_publish_time":1764020744548,"dist-tags":{"latest":"4.0.0"}}