UNPKG

bricks-cli

Version:

Command line tool for developing ambitious ember.js apps

41 lines (40 loc) 2.36 kB
{ "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" }, "readme": "readline2 [![Build Status](https://secure.travis-ci.org/SBoudrias/readline2.png?branch=master)](http://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", "_id": "readline2@0.1.0", "_from": "readline2@^0.1.0" }