readline-ui
Advanced tools
Comparing version 0.1.1 to 0.1.2
'use strict'; | ||
var readline = require('readline'); | ||
var debug = require('debug')('readline-ui'); | ||
var Emitter = require('component-emitter'); | ||
@@ -15,2 +15,8 @@ var stringWidth = require('string-width'); | ||
function UI(options) { | ||
if (!(this instanceof UI)) { | ||
var ui = Object.create(UI.prototype); | ||
UI.apply(ui, arguments); | ||
return ui; | ||
} | ||
debug('initializing from <%s>', __filename); | ||
this.options = utils.createOptions(options); | ||
@@ -17,0 +23,0 @@ this.output = this.options.output; |
{ | ||
"name": "readline-ui", | ||
"description": "Create readline interface to use in prompts.", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/enquirer/readline-ui", | ||
@@ -26,3 +26,4 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"component-emitter": "^1.2.1", | ||
"readline-utils": "^0.1.0", | ||
"debug": "^2.2.0", | ||
"readline-utils": "^0.1.1", | ||
"string-width": "^1.0.2", | ||
@@ -29,0 +30,0 @@ "strip-color": "^0.1.0" |
@@ -29,3 +29,3 @@ # readline-ui [![NPM version](https://img.shields.io/npm/v/readline-ui.svg?style=flat)](https://www.npmjs.com/package/readline-ui) [![NPM downloads](https://img.shields.io/npm/dm/readline-ui.svg?style=flat)](https://npmjs.org/package/readline-ui) [![Build Status](https://img.shields.io/travis/enquirer/readline-ui.svg?style=flat)](https://travis-ci.org/enquirer/readline-ui) | ||
* [enquirer-question](https://www.npmjs.com/package/enquirer-question): Question object, used by Enquirer and prompt plugins. | [homepage](https://github.com/enquirer/enquirer-question "Question object, used by Enquirer and prompt plugins.") | ||
* [enquirer](https://www.npmjs.com/package/enquirer): Plugin-based prompt system for node.js | [homepage](https://github.com/jonschlinkert/enquirer "Plugin-based prompt system for node.js") | ||
* [enquirer](https://www.npmjs.com/package/enquirer): Intuitive, plugin-based prompt system for node.js. Much faster and lighter alternative to Inquirer, with all… [more](https://github.com/enquirer/enquirer) | [homepage](https://github.com/enquirer/enquirer "Intuitive, plugin-based prompt system for node.js. Much faster and lighter alternative to Inquirer, with all the same prompt types and more, but without the bloat.") | ||
* [prompt-choices](https://www.npmjs.com/package/prompt-choices): Create an array of multiple choice objects for use in prompts. | [homepage](https://github.com/enquirer/prompt-choices "Create an array of multiple choice objects for use in prompts.") | ||
@@ -72,2 +72,2 @@ * [readline-utils](https://www.npmjs.com/package/readline-utils): Readline utils, for moving the cursor, clearing lines, creating a readline interface, and more. | [homepage](https://github.com/enquirer/readline-utils "Readline utils, for moving the cursor, clearing lines, creating a readline interface, and more.") | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.30, on September 01, 2016._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.31, on September 21, 2016._ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11507
190
5
+ Addeddebug@^2.2.0
+ Addeddebug@2.6.9(transitive)
+ Addedms@2.0.0(transitive)
Updatedreadline-utils@^0.1.1