mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Update ESLint to 2.1.0. ESLint has a number of potentially-useful new features but this change attempts to be minimal in its changes. However, some things could not be avoided reasonably. ESLint 2.1.0 found a few lint issues that ESLing 1.x missed with template strings that did not take advantage of any features of template strings, and `let` declarations where `const` sufficed. Additionally, ESLint 2.1.0 removes some granularity around enabling ES6 features. Some features (e.g., spread operator) that had been turned off in our configuration for ESLint 1.x are now permitted. PR-URL: https://github.com/nodejs/node/pull/5214 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Myles Borins <myles.borins@gmail.com>
readline2 
Node.js (v0.8 and v0.10) had some bugs and issues with the default Readline module.
This 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.
This project is extracted from the core of Inquirer.js interactive prompt interface to be available as a standalone module.
Documentation
Installation: npm install --save readline2
readline2.createInterface(options); -> {Interface}
Present the same API as Node.js readline.createInterface()
Improvements
- Default
options.inputasprocess.stdin - Default
options.outputasprocess.stdout interface.stdoutis wrapped in a MuteStream- Prevent
upanddownkeys from moving through history inside the readline - Fix cursor position after a line refresh when the
Interfaceprompt contains ANSI colors - Correctly return the cursor position when faced with implicit line returns
License
Copyright (c) 2012 Simon Boudrias (twitter: @vaxilart) Licensed under the MIT license.