{"_id":"readline-ui","_rev":"19-eb687c9c6aeba5bad5aecbe85ec60f76","name":"readline-ui","description":"Create a readline interface with default settings to use in prompts.","dist-tags":{"latest":"2.2.3"},"versions":{"0.1.0":{"name":"readline-ui","description":"Create readline interface to use in prompts.","version":"0.1.0","homepage":"https://github.com/enquirer/readline-ui","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/enquirer/readline-ui.git"},"bugs":{"url":"https://github.com/enquirer/readline-ui/issues"},"license":"MIT","files":["index.js","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"component-emitter":"^1.2.1","readline-utils":"^0.1.0","string-width":"^1.0.2","strip-color":"^0.1.0"},"devDependencies":{"gulp-format-md":"^0.1.10"},"keywords":["answer","answers","ask","checkbox","choice","cli","command","input","inquire","inquirer","interact","interface","list","menu","password","prompt","prompts","question","readline","stdin","stdout","terminal","tty","ui"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["enquirer","enquirer-question","prompt-choices","readline-utils"]},"reflinks":["verb","verb-generate-readme"]},"gitHead":"8dec4491b099e2f8a2aa15cd33278263c3b41485","_id":"readline-ui@0.1.0","_shasum":"9bc10c7eb7417e3ef8c1581261cacde759b05374","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"9bc10c7eb7417e3ef8c1581261cacde759b05374","tarball":"https://registry.npmjs.org/readline-ui/-/readline-ui-0.1.0.tgz","integrity":"sha512-CxrKYCJQNx8ZSuvT9Bu0Qs+hADjoEcaXIv5bYFCUyloXd9y2nL3ry2WfaXOhEV+MQEKVHQY+VkTITqaPYYKVkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4dpFItULbpXWA5jZgfksm3kXPM8C47HVSDs0kLLUT4gIhAO1yk7WldbDoaAXEVDHbnZYJViBBIcm3et12tt7DcpKv"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/readline-ui-0.1.0.tgz_1472432683683_0.5342331926804036"},"directories":{}},"0.1.1":{"name":"readline-ui","description":"Create readline interface to use in prompts.","version":"0.1.1","homepage":"https://github.com/enquirer/readline-ui","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/enquirer/readline-ui.git"},"bugs":{"url":"https://github.com/enquirer/readline-ui/issues"},"license":"MIT","files":["index.js","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"component-emitter":"^1.2.1","readline-utils":"^0.1.0","string-width":"^1.0.2","strip-color":"^0.1.0"},"devDependencies":{"gulp-format-md":"^0.1.10","mocha":"^3.0.2"},"keywords":["answer","answers","ask","checkbox","choice","cli","command","input","inquire","inquirer","interact","interface","list","menu","password","prompt","prompts","question","readline","stdin","stdout","terminal","tty","ui"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["enquirer","enquirer-question","prompt-choices","readline-utils"]},"reflinks":["verb","verb-generate-readme"]},"gitHead":"319bcd35f7ee876c97e2d8356eb9626fff6a62af","_id":"readline-ui@0.1.1","_shasum":"ad0faf4315c59683d83cef5e5f1196b6ef7967fb","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ad0faf4315c59683d83cef5e5f1196b6ef7967fb","tarball":"https://registry.npmjs.org/readline-ui/-/readline-ui-0.1.1.tgz","integrity":"sha512-G47d8gK6mc/PYbuAn2S0FjfOCIHxXk/Om9HFED5XgdsCfgILRWEwDmsmP1pPvR/TnFV9AC045slLMPGFqG03xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEkHjCwlpIgz5mPvbT+MMNMXsCTgclLwgF5Uh835HE6gIgIuC3Qb9oSQQ/MmESa9RwyD5SCT7Bp7CyIQwEXbH3wm4="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/readline-ui-0.1.1.tgz_1472754156401_0.1637636488303542"},"directories":{}},"0.1.2":{"name":"readline-ui","description":"Create readline interface to use in prompts.","version":"0.1.2","homepage":"https://github.com/enquirer/readline-ui","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/enquirer/readline-ui.git"},"bugs":{"url":"https://github.com/enquirer/readline-ui/issues"},"license":"MIT","files":["index.js","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"component-emitter":"^1.2.1","debug":"^2.2.0","readline-utils":"^0.1.1","string-width":"^1.0.2","strip-color":"^0.1.0"},"devDependencies":{"gulp-format-md":"^0.1.10","mocha":"^3.0.2"},"keywords":["answer","answers","ask","checkbox","choice","cli","command","input","inquire","inquirer","interact","interface","list","menu","password","prompt","prompts","question","readline","stdin","stdout","terminal","tty","ui"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["enquirer","enquirer-question","prompt-choices","readline-utils"]},"reflinks":["verb","verb-generate-readme"]},"gitHead":"9cbf1e48775f3c33c42aa42d9f4866d05c32f00f","_id":"readline-ui@0.1.2","_shasum":"ff67612a7d8b58e49f48f98fa2af299eb85ccbd6","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ff67612a7d8b58e49f48f98fa2af299eb85ccbd6","tarball":"https://registry.npmjs.org/readline-ui/-/readline-ui-0.1.2.tgz","integrity":"sha512-q5ZVMDw2u5VcZsytG/xXn9fu9Fi7iKnQ89Iq5cMnihZlruYhSV92QnNldhQXJNcrIhy2DmAIHdfMnTaXKp1FMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICFTNrpIbVhNR+5PBD8h5FkzRrFq96efgClCbs2rhaJ1AiEA5nDPwM7bohBwU4oidogHxXiGOu4t0FZ7786gUksHw80="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/readline-ui-0.1.2.tgz_1474453805626_0.9275009343400598"},"directories":{}},"0.1.3":{"name":"readline-ui","description":"Create readline interface to use in prompts.","version":"0.1.3","homepage":"https://github.com/enquirer/readline-ui","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/enquirer/readline-ui.git"},"bugs":{"url":"https://github.com/enquirer/readline-ui/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"component-emitter":"^1.2.1","debug":"^2.6.3","readline-utils":"^0.1.4","string-width":"^2.0.0","strip-color":"^0.1.0"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.2.0"},"keywords":["answer","answers","ask","checkbox","choice","cli","command","input","inquire","inquirer","interact","interface","list","menu","password","prompt","prompts","question","readline","stdin","stdout","terminal","tty","ui"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["enquirer","enquirer-question","prompt-choices","readline-utils"]},"reflinks":["verb","verb-generate-readme"]},"gitHead":"96fbb26f4fec7a14dd84ec3b9c30f9615c6af5f2","_id":"readline-ui@0.1.3","_shasum":"fa9632f683f4ae381b2bfd797a1544e6ecbb7ec6","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"fa9632f683f4ae381b2bfd797a1544e6ecbb7ec6","tarball":"https://registry.npmjs.org/readline-ui/-/readline-ui-0.1.3.tgz","integrity":"sha512-Dzuy+dPOq/lUbb4moatnRSX67fmwc41tA02CSXEcC6XsOytsdV5E87pQW4lNh65D1AoOkj3tIdFG+Q8dL/AUVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBOuDs36tCx1v92Bsx9ZyvIWc2xn9x3u3oRtVuvBk6+QIgVCA+Xk5LDX/IT9e6SCkfQo59k47fpBjD833y0C+/0ek="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/readline-ui-0.1.3.tgz_1492034577048_0.2711432003416121"},"directories":{}},"0.1.4":{"name":"readline-ui","description":"Create readline interface to use in prompts.","version":"0.1.4","homepage":"https://github.com/enquirer/readline-ui","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/enquirer/readline-ui.git"},"bugs":{"url":"https://github.com/enquirer/readline-ui/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"component-emitter":"^1.2.1","debug":"^2.6.6","readline-utils":"^0.1.6","string-width":"^2.0.0","strip-color":"^0.1.0"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.3.0"},"keywords":["answer","answers","ask","checkbox","choice","cli","command","input","inquire","inquirer","interact","interface","list","menu","password","prompt","prompts","question","readline","stdin","stdout","terminal","tty","ui"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["enquirer","enquirer-question","prompt-choices","readline-utils"]}},"gitHead":"85df5b06cdd665aee74e19098d17ac19a9dfc882","_id":"readline-ui@0.1.4","_shasum":"412c37433559bc1a0a7b15e2dcca4baa6d92275c","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"412c37433559bc1a0a7b15e2dcca4baa6d92275c","tarball":"https://registry.npmjs.org/readline-ui/-/readline-ui-0.1.4.tgz","integrity":"sha512-dUsP/7vRhCiOVQ+r/blB1C6yTZHXlqI5EOaW5kN/qwf2T1+Z/yWUPga6i/HcTIRWxIxOlNL+VfHgu4cpImx9GA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF4Ea9MKZLpZlOV+NTv+drB8obVXmXsqB4ue/Nps3awqAiAR0ms2lVMbeweni6SWnDPZxjZAgDvxA+kncOfdMnn+4w=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/readline-ui-0.1.4.tgz_1494002959138_0.41794084943830967"},"directories":{}},"1.0.0":{"name":"readline-ui","description":"Create readline interface to use in prompts.","version":"1.0.0","homepage":"https://github.com/enquirer/readline-ui","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/enquirer/readline-ui.git"},"bugs":{"url":"https://github.com/enquirer/readline-ui/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4.0"},"scripts":{"test":"mocha"},"dependencies":{"component-emitter":"^1.2.1","debug":"^2.6.6","readline-utils":"^1.0.0","string-width":"^2.0.0","strip-color":"^0.1.0"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.3.0"},"keywords":["answer","answers","ask","checkbox","choice","cli","command","input","inquire","inquirer","interact","interface","list","menu","password","prompt","prompts","question","readline","stdin","stdout","terminal","tty","ui"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["enquirer","enquirer-question","prompt-choices","readline-utils"]}},"gitHead":"02a4460bffca95a10811da497f5890f2e784681a","_id":"readline-ui@1.0.0","_shasum":"17df5f86f610b1a25ec45f95e3a2bbd9fb70459e","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"17df5f86f610b1a25ec45f95e3a2bbd9fb70459e","tarball":"https://registry.npmjs.org/readline-ui/-/readline-ui-1.0.0.tgz","integrity":"sha512-VHppykijAxOXP+OXdITb6zNjER8DrRUIDaVOunccLfErD/uDXSjwJbwz6QV8z2MkaM1xZNPQxBpkB/zq9URjzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxswwE17FrKCQfNcpqHjpzf6FiULHOs1V282XZ0esFiAIgf6iha9EWchVwU3E6iCR+AVUtZqVEgTXtcWl+ILZpja8="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/readline-ui-1.0.0.tgz_1494148825752_0.07891284837387502"},"directories":{}},"2.0.0":{"name":"readline-ui","description":"Create readline interface to use in prompts.","version":"2.0.0","homepage":"https://github.com/enquirer/readline-ui","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/enquirer/readline-ui.git"},"bugs":{"url":"https://github.com/enquirer/readline-ui/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4.0"},"scripts":{"test":"mocha"},"dependencies":{"component-emitter":"^1.2.1","debug":"^2.6.6","readline-utils":"^1.0.0","string-width":"^2.0.0","strip-color":"^0.1.0"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.3.0"},"keywords":["answer","answers","ask","checkbox","choice","cli","command","input","inquire","inquirer","interact","interface","list","menu","password","prompt","prompts","question","readline","stdin","stdout","terminal","tty","ui"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["enquirer","prompt-question","prompt-choices","readline-utils"]}},"gitHead":"adc541743a220e134a31fb8b5478fb3978c7bc80","_id":"readline-ui@2.0.0","_shasum":"2abe1e1841f7726d1a4841b6928d1ceb5607a761","_from":".","_npmVersion":"4.5.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"2abe1e1841f7726d1a4841b6928d1ceb5607a761","tarball":"https://registry.npmjs.org/readline-ui/-/readline-ui-2.0.0.tgz","integrity":"sha512-bBXYgDQDfNNvc2cJ1woWfAzwPEnh7ckpntoFCbXocdlk+6LUbSH2sC2NKeHmnMSHyInjeoryf5mtFJCtbTdBPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBB8Hkle78m4r6nmRHVf8BuTBr7cM5yxfcZZO/IHFPldAiEA0EOhsdBKw3EPmJqcac8CJ/ceLXFE03WzzDs4TJSFgc0="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/readline-ui-2.0.0.tgz_1494310694432_0.8292603362351656"},"directories":{}},"2.0.1":{"name":"readline-ui","description":"Create readline interface to use in prompts.","version":"2.0.1","homepage":"https://github.com/enquirer/readline-ui","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/enquirer/readline-ui.git"},"bugs":{"url":"https://github.com/enquirer/readline-ui/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4.0"},"scripts":{"test":"mocha"},"dependencies":{"component-emitter":"^1.2.1","debug":"^2.6.6","readline-utils":"^2.0.0","string-width":"^2.0.0","strip-color":"^0.1.0"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.3.0"},"keywords":["answer","answers","ask","checkbox","choice","cli","command","input","inquire","inquirer","interact","interface","list","menu","password","prompt","prompts","question","readline","stdin","stdout","terminal","tty","ui"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["enquirer","prompt-question","prompt-choices","readline-utils"]}},"gitHead":"adc541743a220e134a31fb8b5478fb3978c7bc80","_id":"readline-ui@2.0.1","_shasum":"aa600c2869179d2fde4b999c38d27cf16a516d77","_from":".","_npmVersion":"4.5.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"aa600c2869179d2fde4b999c38d27cf16a516d77","tarball":"https://registry.npmjs.org/readline-ui/-/readline-ui-2.0.1.tgz","integrity":"sha512-4IdaDefNc6K95/W/isuY6zDv8SO6ce/CZa+ILkiVZmyT3jxHBgMGPEYUuRN9XaitZfC4oGxi1FEcXCEuEIebFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAY1tWAMZlg6Ag6tet0bhfCXNP32ZMhmGIigBw4j7UOTAiAH/OeQ1ztZWM22z4HNm4yfSkarOoXkCkTtgdwRHF+QTA=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/readline-ui-2.0.1.tgz_1494310931385_0.028986035147681832"},"directories":{}},"2.1.0":{"name":"readline-ui","description":"Create readline interface to use in prompts.","version":"2.1.0","homepage":"https://github.com/enquirer/readline-ui","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/enquirer/readline-ui.git"},"bugs":{"url":"https://github.com/enquirer/readline-ui/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4.0"},"scripts":{"test":"mocha"},"dependencies":{"component-emitter":"^1.2.1","debug":"^2.6.6","readline-utils":"^2.1.0","string-width":"^2.0.0","strip-color":"^0.1.0"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.3.0"},"keywords":["answer","answers","ask","checkbox","choice","cli","command","input","inquire","inquirer","interact","interface","list","menu","password","prompt","prompts","question","readline","stdin","stdout","terminal","tty","ui"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["enquirer","prompt-choices","prompt-question","readline-utils"]}},"gitHead":"3e1bf989c637d12ccee0bfd52c9449180c15ff96","_id":"readline-ui@2.1.0","_shasum":"2bf380c615f029a40e27a313bf6a9240104da2b0","_from":".","_npmVersion":"4.5.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"2bf380c615f029a40e27a313bf6a9240104da2b0","tarball":"https://registry.npmjs.org/readline-ui/-/readline-ui-2.1.0.tgz","integrity":"sha512-ry4LXjBeugjEHDYq3Wq3qxy0kW42m40Z/NChYHHsFDKOfBNiggpYr8zvhjzyjP4dSM9EdnUXrZ7VaPF+1lhHow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9pGDpSrJc/0XqRYULEJIBoImoukxNawMcpSqC7x1/xQIhAKJdS386KBKCAPQl5E4aDcRxe1UazQGjvoXbV9gPm+JN"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/readline-ui-2.1.0.tgz_1494354512242_0.7607484827749431"},"directories":{}},"2.2.0":{"name":"readline-ui","description":"Create readline interface to use in prompts.","version":"2.2.0","homepage":"https://github.com/enquirer/readline-ui","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/enquirer/readline-ui.git"},"bugs":{"url":"https://github.com/enquirer/readline-ui/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4.0"},"scripts":{"test":"mocha"},"dependencies":{"component-emitter":"^1.2.1","debug":"^2.6.6","readline-utils":"^2.1.0","string-width":"^2.0.0"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.3.0"},"keywords":["answer","answers","ask","checkbox","choice","cli","command","input","inquire","inquirer","interact","interface","list","menu","password","prompt","prompts","question","readline","stdin","stdout","terminal","tty","ui"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["enquirer","prompt-choices","prompt-question","readline-utils"]}},"gitHead":"c018c61b7fa1b5f4d367a74cd115db3810d7c079","_id":"readline-ui@2.2.0","_shasum":"c7563f4ee85c8e18171c8bf0bb50b5b5cf3fd5fa","_from":".","_npmVersion":"4.5.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"c7563f4ee85c8e18171c8bf0bb50b5b5cf3fd5fa","tarball":"https://registry.npmjs.org/readline-ui/-/readline-ui-2.2.0.tgz","integrity":"sha512-8l1FojXO6q+ByUQ/p25EbuZJGdkeDSh4NIy6NXhUr0Lnk133Khhih/ySN3zy2GG5EnAT8pn4gZSiJlE3Qf+2bw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2Na+dqX8EjObQboa7HT9M15BeJmbL8QC9yXdEvSjhGQIhANsAHZtSY85TCbni6nzAqu8QN9vo2R71ghpF6NfT9Dpm"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/readline-ui-2.2.0.tgz_1495018695008_0.639149455819279"},"directories":{}},"2.2.1":{"name":"readline-ui","description":"Create readline interface to use in prompts.","version":"2.2.1","homepage":"https://github.com/enquirer/readline-ui","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/enquirer/readline-ui.git"},"bugs":{"url":"https://github.com/enquirer/readline-ui/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4.0"},"scripts":{"test":"mocha"},"dependencies":{"component-emitter":"^1.2.1","debug":"^2.6.6","readline-utils":"^2.1.0","string-width":"^2.0.0"},"devDependencies":{"ansi-cyan":"^0.1.1","gulp-format-md":"^0.1.12","mocha":"^3.3.0"},"keywords":["answer","answers","ask","checkbox","choice","cli","command","input","inquire","inquirer","interact","interface","list","menu","password","prompt","prompts","question","readline","stdin","stdout","terminal","tty","ui"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["enquirer","prompt-choices","prompt-question","readline-utils"]}},"gitHead":"ddc16d9f9c9cb56bb079667d1a98aeb052b4db5b","_id":"readline-ui@2.2.1","_shasum":"c14d65c546f697623cb08b25276a8008dba9def4","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"c14d65c546f697623cb08b25276a8008dba9def4","tarball":"https://registry.npmjs.org/readline-ui/-/readline-ui-2.2.1.tgz","integrity":"sha512-d7Fc/Nzg+4aCkZKUxUlGF75EPfYXha7hVWuAuOGP59vbhj+gNQ/cQzE6d2BPN12YEusISdMzjFub+AvJgeQNwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7MF492U7dXrn9ddYESlysjcYCGHW1pHquOiMQ91B+CQIgLzbyuxNh5Jbg251QcHhI/VuVQdV5Ud+WJSGW3JHKi/s="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/readline-ui-2.2.1.tgz_1495393654554_0.8942727448884398"},"directories":{}},"2.2.2":{"name":"readline-ui","description":"Create readline interface to use in prompts.","version":"2.2.2","homepage":"https://github.com/enquirer/readline-ui","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/enquirer/readline-ui.git"},"bugs":{"url":"https://github.com/enquirer/readline-ui/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4.0"},"scripts":{"test":"mocha"},"dependencies":{"component-emitter":"^1.2.1","debug":"^2.6.6","readline-utils":"^2.1.0","string-width":"^2.0.0"},"devDependencies":{"ansi-cyan":"^0.1.1","gulp-format-md":"^0.1.12","mocha":"^3.3.0"},"keywords":["answer","answers","ask","checkbox","choice","cli","command","input","inquire","inquirer","interact","interface","list","menu","password","prompt","prompts","question","readline","stdin","stdout","terminal","tty","ui"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["enquirer","prompt-choices","prompt-question","readline-utils"]}},"gitHead":"ddc16d9f9c9cb56bb079667d1a98aeb052b4db5b","_id":"readline-ui@2.2.2","_shasum":"bc85f812f690f67ef8da60593ae6ac9d6a44f537","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"bc85f812f690f67ef8da60593ae6ac9d6a44f537","tarball":"https://registry.npmjs.org/readline-ui/-/readline-ui-2.2.2.tgz","integrity":"sha512-U7YCMIlAh4uZnsc9jtpnvyS9/6scqNmscORhZg3outarQnzXPyHoM5Eyw86dSPtI1R8ur9imNLmw1IRaERchLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEZxA8CjlHYOWJAQHBNySQrRwbcBj8aaiB07rGk3E5YAIgNxdyHHXSJCCF3Ra9GR7h+clBUBkz/iwSUc0UWxHeLLg="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/readline-ui-2.2.2.tgz_1495585454049_0.967737790197134"},"directories":{}},"2.2.3":{"name":"readline-ui","description":"Create a readline interface with default settings to use in prompts.","version":"2.2.3","homepage":"https://github.com/enquirer/readline-ui","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/enquirer/readline-ui.git"},"bugs":{"url":"https://github.com/enquirer/readline-ui/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4.0"},"scripts":{"test":"mocha"},"dependencies":{"component-emitter":"^1.2.1","debug":"^2.6.8","readline-utils":"^2.2.1","string-width":"^2.0.0"},"devDependencies":{"ansi-cyan":"^0.1.1","gulp-format-md":"^0.1.12","mocha":"^3.4.2"},"keywords":["answer","answers","ask","checkbox","choice","cli","command","input","inquire","inquirer","interact","interface","list","menu","password","prompt","prompts","question","readline","stdin","stdout","terminal","tty","ui"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["enquirer","prompt-choices","prompt-question","readline-utils"]}},"gitHead":"f87116b2c95657c7c2bd133f28368aafe897b2ff","_id":"readline-ui@2.2.3","_npmVersion":"5.0.2","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"integrity":"sha512-ix7jz0PxqQqcIuq3yQTHv1TOhlD2IHO74aNO+lSuXsRYm1d+pdyup1yF3zKyLK1wWZrVNGjkzw5tUegO2IDy+A==","shasum":"9e873a7668bbd8ca8a5573ce810a6bafb70a5089","tarball":"https://registry.npmjs.org/readline-ui/-/readline-ui-2.2.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCR4WGGWg8EIzGM2WgdpDfMmcngiEntRsW2Gu21hlUBEQIgLu3UbNXMAewQZxpQIA5klaay7XHl4pvSNSUkrMk6daM="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/readline-ui-2.2.3.tgz_1496623142843_0.20142228854820132"},"directories":{}}},"readme":"# readline-ui [![NPM version](https://img.shields.io/npm/v/readline-ui.svg?style=flat)](https://www.npmjs.com/package/readline-ui) [![NPM monthly downloads](https://img.shields.io/npm/dm/readline-ui.svg?style=flat)](https://npmjs.org/package/readline-ui) [![NPM total downloads](https://img.shields.io/npm/dt/readline-ui.svg?style=flat)](https://npmjs.org/package/readline-ui) [![Linux Build Status](https://img.shields.io/travis/enquirer/readline-ui.svg?style=flat&label=Travis)](https://travis-ci.org/enquirer/readline-ui)\n\n> Create a readline interface with default settings to use in prompts.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save readline-ui\n```\n\n## Usage\n\n```js\nvar UI = require('readline-ui');\nvar ui = new UI();\n```\n\n## Example\n\n![example](example.gif)\n\nThe following example shows how to create a basic input prompt. This example is a greatly simplified version of [prompt-base](https://github.com/enquirer/prompt-base).\n\n_(This code is also in [example.js](example.js) if you want to run it yourself.)_\n\n```js\nvar cyan = require('ansi-cyan');\nvar UI = require('readline-ui');\nvar ui = new UI();\n\n// first, we need to render the \"question\" \n// to display in the terminal\nvar prompt = '? foo ';\nui.render(prompt);\n\n// on keypress events, re-render the prompt \n// along with user input\nui.on('keypress', function() {\n  ui.render(prompt + ui.rl.line);\n});\n\n// when the \"line\" event is emitted (from the \"enter\" keypress)\n// we `.end()` to unmute the output stream then pause the readline. \nui.on('line', function(answer) {\n  ui.render(prompt + cyan(answer));\n  ui.end();\n  ui.rl.pause();\n  console.log({color: answer});\n});\n```\n\n## API\n\n### [.onKeypress](index.js#L70)\n\nHandle `keypress` events.\n\n**Params**\n\n* `str` **{String}**\n* `key` **{Object}**\n* `returns` **{undefined}**\n\n### [.render](index.js#L82)\n\nRender the prompt with the given `input` and optional `footer`.\n\n**Params**\n\n* `input` **{String}**\n* `footer` **{String}**: (optional)\n* `returns` **{undefined}**\n\n### [.clearLines](index.js#L148)\n\nRemove `n` lines from the bottom of the terminal\n\n**Params**\n\n* `lines` **{Number}**: Number of lines to remove\n\n### [.cacheCursorPos](index.js#L159)\n\nCache the current cursor's column and line position.\n\n* `returns` **{Object}**: UI instance.\n\n### [.restoreCursorPos](index.js#L170)\n\nRestore the cursor position to the cached column and line.\n\n* `returns` **{Object}**: UI instance.\n\n### [.resume](index.js#L180)\n\nResume the input stream.\n\n### [.pause](index.js#L189)\n\nPause the input stream, allowing it to be resumed later if necessary.\n\n### [.close](index.js#L201)\n\nClose the `readline.Interface` instance and relinquish\ncontrol over the input and output streams. Also removes\nevent listeners, and restores/unmutes prompt functionality.\n\n### [.forceClose](index.js#L211)\n\nClose the interface when the keypress is `^C`\n\n### [.finish](index.js#L222)\n\nReturns an \"indentity\" function that calls `.close()`,\nwhich can be used as the final `.then()` function with\npromises.\n\n### [.end](index.js#L237)\n\nDefault method for writing a prompt to the terminal.\nThis can be overridden.\n\n### [.mute](index.js#L260)\n\nMutes the output stream that was used to create the readline interface, and returns a function for unmuting the stream. This is useful in unit tests.\n\n* `returns` **{Function}**\n\n**Example**\n\n```js\n// mute the stream\nvar unmute = ui.mute();\n\n// unmute the stream\nunmute();\n```\n\n### [.log](index.js#L280)\n\nUnmute then write to the output stream that was used\nto create the readline interface, then re-mute the stream.\nUseful for debugging prompts.\n\n## Attribution\n\nInspired by the \"screen manager\" code in Inquirer.\n\n## About\n\n### Related projects\n\n* [enquirer](https://www.npmjs.com/package/enquirer): Intuitive, plugin-based prompt system for node.js. | [homepage](http://enquirer.io \"Intuitive, plugin-based prompt system for node.js.\")\n* [prompt-choices](https://www.npmjs.com/package/prompt-choices): Create an array of multiple choice objects for use in prompts. | [homepage](https://github.com/enquirer/prompt-choices \"Create an array of multiple choice objects for use in prompts.\")\n* [prompt-question](https://www.npmjs.com/package/prompt-question): Question object, used by Enquirer and prompt plugins. | [homepage](https://github.com/enquirer/prompt-question \"Question object, used by Enquirer and prompt plugins.\")\n* [readline-utils](https://www.npmjs.com/package/readline-utils): Readline utils, for moving the cursor, clearing lines, creating a readline interface, and more. | [homepage](https://github.com/enquirer/readline-utils \"Readline utils, for moving the cursor, clearing lines, creating a readline interface, and more.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nPlease read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 04, 2017._","maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2022-06-26T09:18:17.796Z","created":"2016-08-29T01:04:44.722Z","0.1.0":"2016-08-29T01:04:44.722Z","0.1.1":"2016-09-01T18:22:38.257Z","0.1.2":"2016-09-21T10:30:08.071Z","0.1.3":"2017-04-12T22:02:58.838Z","0.1.4":"2017-05-05T16:49:21.107Z","1.0.0":"2017-05-07T09:20:27.591Z","1.1.0":"2017-05-09T06:17:35.476Z","2.0.0":"2017-05-09T06:18:16.212Z","2.0.1":"2017-05-09T06:22:13.140Z","2.1.0":"2017-05-09T18:28:34.376Z","2.2.0":"2017-05-17T10:58:17.000Z","2.2.1":"2017-05-21T19:07:35.507Z","2.2.2":"2017-05-24T00:24:14.903Z","2.2.3":"2017-06-05T00:39:03.941Z"},"homepage":"https://github.com/enquirer/readline-ui","keywords":["answer","answers","ask","checkbox","choice","cli","command","input","inquire","inquirer","interact","interface","list","menu","password","prompt","prompts","question","readline","stdin","stdout","terminal","tty","ui"],"repository":{"type":"git","url":"git+https://github.com/enquirer/readline-ui.git"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/enquirer/readline-ui/issues"},"license":"MIT","readmeFilename":"README.md","users":{"iceriver2":true}}