{"_id":"readline2","_rev":"44301","name":"readline2","description":"Readline Façade fixing bugs and issues found in releases 0.8 and 0.10","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"sboudrias","email":""}],"time":{"modified":"2021-06-03T10:13:37.000Z","created":"2014-02-01T05:17:15.686Z","1.0.1":"2015-07-17T07:05:50.142Z","1.0.0":"2015-07-17T07:03:39.683Z","0.1.1":"2015-01-21T06:55:37.493Z","0.1.0":"2014-02-01T05:17:15.686Z"},"users":{},"author":{"name":"Simon Boudrias","email":"admin@simonboudrias.com"},"repository":{"type":"git","url":"git+https://github.com/sboudrias/readline2.git"},"versions":{"1.0.1":{"name":"readline2","version":"1.0.1","description":"Readline Façade fixing bugs and issues found in releases 0.8 and 0.10","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git+https://github.com/sboudrias/readline2.git"},"keywords":["cli","terminal","readline","tty","ansi"],"author":{"name":"Simon Boudrias","email":"admin@simonboudrias.com"},"license":"MIT","files":["index.js"],"dependencies":{"code-point-at":"^1.0.0","is-fullwidth-code-point":"^1.0.0","mute-stream":"0.0.5"},"devDependencies":{"chalk":"^1.1.0","mocha":"^2.1.0","sinon":"^1.7.3"},"gitHead":"32aa9851e2cbb0610364d5009165be6fb2fed4ef","bugs":{"url":"https://github.com/sboudrias/readline2/issues"},"homepage":"https://github.com/sboudrias/readline2#readme","_id":"readline2@1.0.1","_shasum":"41059608ffc154757b715d9989d199ffbf372e35","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"dist":{"shasum":"41059608ffc154757b715d9989d199ffbf372e35","size":2601,"noattachment":false,"key":"/readline2/-/readline2-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/readline2/download/readline2-1.0.1.tgz"},"maintainers":[{"name":"sboudrias","email":""}],"directories":{},"publish_time":1437116750142,"_cnpm_publish_time":1437116750142,"_hasShrinkwrap":false},"1.0.0":{"name":"readline2","version":"1.0.0","description":"Readline Façade fixing bugs and issues found in releases 0.8 and 0.10","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git+https://github.com/sboudrias/readline2.git"},"keywords":["cli","terminal","readline","tty","ansi"],"author":{"name":"Simon Boudrias","email":"admin@simonboudrias.com"},"license":"MIT","files":["index.js"],"dependencies":{"code-point-at":"^1.0.0","is-fullwidth-code-point":"^1.0.0","mute-stream":"^0.0.4"},"devDependencies":{"chalk":"^0.5.1","mocha":"^2.1.0","sinon":"^1.7.3"},"gitHead":"538bfdf4eae96e84500f62e883b46b4efb63b572","bugs":{"url":"https://github.com/sboudrias/readline2/issues"},"homepage":"https://github.com/sboudrias/readline2#readme","_id":"readline2@1.0.0","_shasum":"80ce163d27c5d94cadd9e293d4ed6325748893e8","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"dist":{"shasum":"80ce163d27c5d94cadd9e293d4ed6325748893e8","size":2601,"noattachment":false,"key":"/readline2/-/readline2-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/readline2/download/readline2-1.0.0.tgz"},"maintainers":[{"name":"sboudrias","email":""}],"directories":{},"publish_time":1437116619683,"_cnpm_publish_time":1437116619683,"_hasShrinkwrap":false},"0.1.1":{"name":"readline2","version":"0.1.1","description":"Readline Façade fixing bugs and issues found in releases 0.8 and 0.10","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/SBoudrias/readline2"},"keywords":["cli","terminal","readline","tty","ansi"],"author":{"name":"Simon Boudrias","email":"admin@simonboudrias.com"},"license":"MIT","files":["index.js"],"dependencies":{"mute-stream":"0.0.4","strip-ansi":"^2.0.1"},"devDependencies":{"chalk":"^0.5.1","mocha":"^2.1.0","sinon":"^1.7.3"},"gitHead":"a7299990e47e56d892e3a5e532b62f124110d3ee","bugs":{"url":"https://github.com/SBoudrias/readline2/issues"},"homepage":"https://github.com/SBoudrias/readline2","_id":"readline2@0.1.1","_shasum":"99443ba6e83b830ef3051bfd7dc241a82728d568","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"maintainers":[{"name":"sboudrias","email":""}],"dist":{"shasum":"99443ba6e83b830ef3051bfd7dc241a82728d568","size":2909,"noattachment":false,"key":"/readline2/-/readline2-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/readline2/download/readline2-0.1.1.tgz"},"directories":{},"publish_time":1421823337493,"_cnpm_publish_time":1421823337493,"_hasShrinkwrap":false},"0.1.0":{"name":"readline2","version":"0.1.0","description":"Readline Façade fixing bugs and issues found in releases 0.8 and 0.10","main":"index.js","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git://github.com/SBoudrias/readline2.git"},"keywords":["cli","terminal","readline","tty"],"author":{"name":"Simon Boudrias","email":"admin@simonboudrias.com"},"license":"MIT","bugs":{"url":"https://github.com/SBoudrias/readline2/issues"},"homepage":"https://github.com/SBoudrias/readline2","dependencies":{"mute-stream":"0.0.4","lodash":"~2.4.1","chalk":"~0.4.0"},"devDependencies":{"sinon":"~1.7.3"},"_id":"readline2@0.1.0","dist":{"shasum":"6a272ef89731225b448e4c6799b6e50d5be12b98","size":3717,"noattachment":false,"key":"/readline2/-/readline2-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/readline2/download/readline2-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"maintainers":[{"name":"sboudrias","email":""}],"directories":{},"publish_time":1391231835686,"_cnpm_publish_time":1391231835686,"_hasShrinkwrap":false}},"readme":"readline2 [![Build Status](https://travis-ci.org/SBoudrias/readline2.png?branch=master)](https://travis-ci.org/SBoudrias/readline2)\n=========\n\nNode.js (v0.8 and v0.10) had some bugs and issues with the default [Readline](http://nodejs.org/api/readline.html) module.\n\nThis module include fixes seen in later version (0.11-0.12 and iojs) and ease some undesirable behavior one could see using the readline to create interatives prompts. This means `readline2` change some behaviors and as so is **not** meant to be an exact drop-in replacement.\n\nThis project is extracted from the core of [Inquirer.js interactive prompt interface](https://github.com/SBoudrias/Inquirer.js) to be available as a standalone module.\n\n\nDocumentation\n-------------\n\n**Installation**: `npm install --save readline2`\n\n### readline2.createInterface(options); -> {Interface}\n\nPresent the same API as [Node.js `readline.createInterface()`](http://nodejs.org/api/readline.html)\n\n#### Improvements\n- Default `options.input` as `process.stdin`\n- Default `options.output` as `process.stdout`\n- `interface.stdout` is wrapped in a [MuteStream](https://github.com/isaacs/mute-stream)\n- Prevent `up` and `down` keys from moving through history inside the readline\n- Fix cursor position after a line refresh when the `Interface` prompt contains ANSI colors\n- Correctly return the cursor position when faced with implicit line returns\n\n\nLicense\n-------------\n\nCopyright (c) 2012 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))\nLicensed under the MIT license.\n","_attachments":{},"homepage":"https://github.com/sboudrias/readline2#readme","bugs":{"url":"https://github.com/sboudrias/readline2/issues"},"license":"MIT"}