{ "_id": "readline2", "_rev": "5-712a06630f0dcacbdad62395b8380f5b", "name": "readline2", "description": "Readline Façade fixing bugs and issues found in releases 0.8 and 0.10", "dist-tags": { "latest": "1.0.1" }, "versions": { "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", "tarball": "https://registry.npmjs.org/readline2/-/readline2-0.1.0.tgz" }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "sboudrias", "email": "admin@simonboudrias.com" }, "maintainers": [ { "name": "sboudrias", "email": "admin@simonboudrias.com" } ], "directories": {} }, "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": "admin@simonboudrias.com" } ], "dist": { "shasum": "99443ba6e83b830ef3051bfd7dc241a82728d568", "tarball": "https://registry.npmjs.org/readline2/-/readline2-0.1.1.tgz" }, "directories": {} }, "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", "tarball": "https://registry.npmjs.org/readline2/-/readline2-1.0.0.tgz" }, "maintainers": [ { "name": "sboudrias", "email": "admin@simonboudrias.com" } ], "directories": {} }, "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", "tarball": "https://registry.npmjs.org/readline2/-/readline2-1.0.1.tgz" }, "maintainers": [ { "name": "sboudrias", "email": "admin@simonboudrias.com" } ], "directories": {} } }, "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", "maintainers": [ { "name": "sboudrias", "email": "admin@simonboudrias.com" } ], "time": { "modified": "2015-07-17T07:05:50.142Z", "created": "2014-02-01T05:17:15.686Z", "0.1.0": "2014-02-01T05:17:15.686Z", "0.1.1": "2015-01-21T06:55:37.493Z", "1.0.0": "2015-07-17T07:03:39.683Z", "1.0.1": "2015-07-17T07:05:50.142Z" }, "readmeFilename": "README.md", "homepage": "https://github.com/sboudrias/readline2#readme", "keywords": [ "cli", "terminal", "readline", "tty", "ansi" ], "repository": { "type": "git", "url": "git+https://github.com/sboudrias/readline2.git" }, "author": { "name": "Simon Boudrias", "email": "admin@simonboudrias.com" }, "bugs": { "url": "https://github.com/sboudrias/readline2/issues" }, "license": "MIT", "_attachments": {} }