{"name":"@putout/cli-choose","version":"2.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","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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":"^3.0.1"},"keywords":["putout","putout-plugin","plugin","gitignore"],"devDependencies":{"c8":"^9.0.0","eslint":"^9.0.0-alpha.0","eslint-plugin-n":"^17.0.0-0","eslint-plugin-putout":"^22.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1","putout":"*","supertape":"^10.0.0"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"gitHead":"a0e18181c14abe84ac5443650706d5351e6be193","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/cli-choose@2.0.0","_nodeVersion":"20.11.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-q9gj1cX/fKuXJjtEgQ+CsHhbiA2CGJ5TTIVZwdv32w5WKAiYfo6cIxCliZpa8ZX978X8uDDgWJ1DPgLHXc/tRg==","shasum":"07deee66af84909c0004581c5cce805016508296","tarball":"http://registry-npm.ywwl.com/@putout/cli-choose/download/@putout/cli-choose-2.0.0.tgz","fileCount":5,"unpackedSize":3710,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYyp/zNxSPOg7aXbIjfh2VTNjJhXKQGYR4XBUP7oFNTwIhAMGi5UdbBDEeb/3XgWUP4HUB89UfCmNctVgnwLe8lRQB"}],"size":1931,"noattachment":false,"key":"/@putout/cli-choose/-/@putout/cli-choose-2.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","tmp":"tmp/cli-choose_2.0.0_1708104479140_0.6180681319814223"},"_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":1708104479293,"_cnpm_publish_time":1708104479293,"dist-tags":{"latest":"4.0.0"}}