{ "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": "git://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" }, "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) 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 a 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\n\nLicense\n-------------\n\nCopyright (c) 2012 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))\nLicensed under the MIT license.\n", "readmeFilename": "README.md", "bugs": { "url": "https://github.com/SBoudrias/readline2/issues" }, "homepage": "https://github.com/SBoudrias/readline2", "_id": "readline2@0.1.1", "_shasum": "99443ba6e83b830ef3051bfd7dc241a82728d568", "_from": "readline2@~0.1.0", "_resolved": "https://registry.npmjs.org/readline2/-/readline2-0.1.1.tgz" }